Search Header Logo

SQL Commands and Concepts

Authored by Simon Withey

Computers

11th Grade

Used 1+ times

SQL Commands and Concepts
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of language is SQL primarily considered to be?

Procedural

Object-Oriented

Declarative

Functional

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a primary function of SQL?

Querying data

Manipulating data

Defining data structures

Creating graphical user interfaces

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the SQL query `SELECT population FROM world WHERE name='Germany'`, what is the purpose of the `WHERE` clause?

To specify the table from which data is retrieved.

To define the columns to be displayed in the output.

To filter records based on a specified condition.

To sort the results in a particular order.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the asterisk (*) symbol signify when used in a `SELECT` statement (e.g., `SELECT * FROM table_name`)?

It selects only the primary key column.

It indicates that no columns should be selected.

It selects all columns from the specified table.

It is used for mathematical operations on columns.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To add a new country named "Atlantis" with continent "Oceania" and population 500000 to the 'world' table, which SQL command is correct?

INSERT INTO world VALUES ("Atlantis", "Oceania", 500000)

INSERT INTO world (name, continent, population) VALUES ("Atlantis", "Oceania", 500000)

ADD RECORD TO world (name="Atlantis", continent="Oceania", population=500000)

CREATE NEW world ("Atlantis", "Oceania", 500000)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL command removes all records from the 'world' table where the 'area' is less than 1000?

REMOVE FROM world WHERE area < 1000

DELETE FROM world WHERE area < 1000

ERASE world WHERE area < 1000

DROP RECORDS FROM world WHERE area < 1000

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To change the 'gdp' of a country named "Albania" to 15000000000 in the 'world' table, which SQL command is correct?

MODIFY world SET gdp = 15000000000 WHERE name = "Albania"

UPDATE world SET gdp = 15000000000 WHERE name = "Albania"

CHANGE world gdp = 15000000000 FOR name = "Albania"

ALTER world SET gdp = 15000000000 WHERE name = "Albania"

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?