Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SQL Basics Quiz

Total questions: 1

Worksheet time: 10mins

Name
Class
Date

1-10.

Answer the questions below after watching the video

1.

What is a database used for?

a)

To process data quickly

b)

To display data visually

c)

To store a large amount of information

d)

To store a small amount of information

2.

Which three words are essential for basic SQL queries?

a)

SELECT, FROM, WHERE

b)

INSERT, DELETE, UPDATE

c)

JOIN, GROUP BY, ORDER BY

d)

CREATE, DROP, ALTER

3.

What does the 'SELECT' keyword do in SQL?

a)

It updates data in a table

b)

It inserts data into a table

c)

It retrieves data from a table

d)

It deletes data from a table

4.

How would you retrieve the names of cheeses priced over two pounds?

a)

SELECT name FROM cheese_table WHERE price > 2

b)

SELECT price FROM cheese_table WHERE name > 2

c)

SELECT name FROM cheese_table WHERE price < 2

d)

SELECT * FROM cheese_table WHERE price > 2

5.

What result would you get from the query: SELECT name, color FROM cheese_table WHERE strength = 2?

a)

Mild Cheddar, Orange

b)

Edam, Yellow

c)

Mature Cheddar, Yellow

d)

Stilton, White

6.

Which Boolean operator would you use to combine conditions in SQL?

a)

AND

b)

OR

c)

NOT

d)

BOTH

7.

What would be the result of the query: SELECT name, color FROM cheese_table WHERE strength > 1 AND color = 'yellow'?

a)

Mild Cheddar, Orange

b)

Mature Cheddar, Yellow

c)

Stilton, White

d)

Edam, Yellow

8.

What does the asterisk (*) symbol represent in SQL?

a)

It inserts all rows into a table

b)

It updates all rows in a table

c)

It deletes all rows from a table

d)

It selects all columns from a table

9.

How would you retrieve all rows where the name starts with 'M'?

a)

SELECT * FROM cheese_table WHERE name = 'M%'

b)

SELECT * FROM cheese_table WHERE name LIKE 'M%'

c)

SELECT * FROM cheese_table WHERE name LIKE '%M'

d)

SELECT * FROM cheese_table WHERE name = 'M'

10.

What is the purpose of the LIKE operator in SQL?

a)

To delete rows based on a pattern

b)

To update rows based on a pattern

c)

To select rows based on a pattern

d)

To insert rows based on a pattern