wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Basics of SQL | 10 Grade ICT | Unit 2(DB)

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What does the SELECT command do in SQL?

a)

Creates a new table in the database.

b)

Updates data in the database.

c)

Retrieves data from the database.

d)

Deletes data from the database.

2.

What SQL command would you use to update existing records in a table?

a)

DELETE FROM table_name WHERE condition;

b)

INSERT INTO table_name VALUES (value1, value2);

c)

SELECT * FROM table_name WHERE condition;

d)

UPDATE table_name SET column_name = new_value WHERE condition;

3.

What is the purpose of the ORDER BY clause in SQL?

a)

Combining data from multiple tables into a single result.

b)

Grouping query results by one or more columns.

c)

Sorting query results by one or more columns.

d)

Filtering query results based on specified criteria.

4.

If you want to change the structure of an existing table, which command would you use?

a)

CREATE TABLE

b)

DROP TABLE

c)

UPDATE TABLE

d)

ALTER TABLE

5.

Which SQL command deletes an entire table from the database?

a)

DROP TABLE table_name;

b)

CLEAR TABLE table_name;

c)

DELETE TABLE table_name;

d)

REMOVE TABLE table_name;

6.

What does the INSERT INTO command do in SQL?

a)

Deletes rows from the database table.

b)

Adds new rows to the database table.

c)

Creates a new table in the database.

d)

Modifies existing rows in the database table.

7.

What operator is used to filter records in SQL?

a)

SELECT

b)

ORDER BY

c)

FILTER

d)

WHERE

8.

What data type is used to store text information in SQL?

a)

INTEGER, FLOAT, BOOLEAN

b)

DATE, TIME, TIMESTAMP

c)

VARCHAR, CHAR, TEXT

d)

BLOB, XML, JSON

9.

Which operator is used to delete records from a table?

a)

DELETE

b)

CLEAR

c)

REMOVE

d)

DROP

10.

What does the CREATE TABLE command do in SQL?

a)

Copies data from one table to another.

b)

Creates a new table in the database.

c)

Modifies the structure of an existing table.

d)

Deletes a table from the database.