SQL Multiple Choice Quiz (Beginner Level)

1. What is SQL?

 
 
 
 

2.

Which SQL statement is used to retrieve data from a database?

 
 
 
 

3.

Which clause is used to filter the records in a SQL query?

 
 
 
 

4.

What does the COUNT(*) function do in SQL?

 
 
 
 

5.

Which SQL keyword is used to sort the result set?

 
 
 
 

6.

What is the purpose of the GROUP BY clause?

 
 
 
 

7.

Which command is used to remove all records from a table but not the table itself?

 
 
 
 

8.

What does PRIMARY KEY ensure in a table?

 
 
 
 

9.

What is the default sort order of ORDER BY in SQL?

 
 
 
 

10.

Which operator is used to search for a specified pattern in a column?

 
 
 
 

11.

What is a JOIN in SQL?

 
 
 
 

12.

Which of the following is used to remove duplicate records in SQL?

 
 
 
 

13.

Which of these is not a valid SQL data type?

 
 
 
 

14.

Which of these statements creates a new table?

 
 
 
 

15.

What is the purpose of a FOREIGN KEY?

 
 
 
 

16.

Which command adds a new row to a table?

 
 
 
 

17.

Which of the following allows duplicate values in a table?

 
 
 
 

18.

What is the main purpose of a PRIMARY KEY in a table?

 
 
 
 

19.

Which statement is true about a composite primary key?

 
 
 
 

20.

What does the IS NULL condition check for?

 
 
 
 


Leave a Reply

Your email address will not be published. Required fields are marked *