SQL Quiz

1. Which SQL statement is used to remove a table from a database?

2. What is the purpose of the COALESCE() function in SQL?

3. Which SQL clause is used to specify a search condition for groups or aggregates?

4. What does the EXISTS operator do in SQL?

5. Which SQL function is used to convert a value to a specific data type?

6. What is a VIEW in SQL?

7. Which SQL keyword is used to combine the result sets of two or more SELECT statements, removing duplicate rows?

8. What is the purpose of a TRANSACTION in SQL?

9. Which SQL function is used to find the largest value in a set of values?

10. What is the purpose of a TRIGGER in SQL?

11. Which SQL operator is used for pattern matching with wildcards?

12. What does the INNER JOIN clause return in SQL?

13. Which SQL statement is used to modify the structure of an existing table?

14. What is the purpose of the CHECK constraint in SQL?

15. Which SQL keyword is used to return only unique rows from a query result?

16. What is the purpose of a STORED PROCEDURE in SQL?

17. Which SQL function is used to calculate the average of a set of values?

18. What does the FULL OUTER JOIN clause return in SQL?

19. Which SQL operator is used to test if a value is within a range?

20. What is the primary purpose of an INDEX in SQL?