mysql Quiz

1. Which SQL keyword is used to retrieve data from a database?

2. What is the purpose of the WHERE clause in a SQL statement?

3. Which SQL keyword is used to sort the result set in ascending order?

4. What does the JOIN clause do in SQL?

5. Which SQL keyword is used to insert new rows into a table?

6. What is the purpose of the GROUP BY clause in SQL?

7. Which SQL keyword is used to modify existing rows in a table?

8. What is the purpose of the PRIMARY KEY constraint in a table?

9. Which SQL keyword is used to delete rows from a table?

10. What does the FOREIGN KEY constraint do in a table?

11. Which SQL aggregate function is used to count the number of rows?

12. What is the purpose of the INDEX in a MySQL table?

13. Which SQL keyword is used to retrieve distinct values from a column?

14. What is the purpose of the AUTO_INCREMENT attribute in a column?

15. Which SQL clause is used with aggregate functions to filter groups based on a condition?

16. What is the purpose of the LIKE operator in SQL?

17. Which SQL data type is used to store variable-length strings?

18. What is the purpose of the TRUNCATE TABLE statement in SQL?

19. Which SQL keyword is used to create a new database?

20. What is the purpose of a VIEW in MySQL?