START LEARNING
#1. What does the SQL statement SELECT DISTINCT do?
#2. What is the purpose of the HAVING clause in SQL?
#3. Which SQL function is used to calculate the total sum of a column?
#4. Which SQL keyword is used to join tables based on a condition?
#5. What does the GROUP BY clause do in SQL?
#6. Which of the following is used to retrieve data from multiple tables in a single query?
#7. What is the purpose of the ORDER BY clause?
#8. Which SQL function returns the number of rows in a table?
#9. What is a correlated subquery?
#10. What does the LIKE operator do in SQL?
#11. Which clause is used to combine rows from two or more tables based on a condition?
#12. Which statement best describes UNION in SQL?
#13. What does OFFSET do in a SQL query?
#14. What is the purpose of a WITH clause in SQL?
#15. What type of JOIN includes unmatched rows from both tables?
#16. Which of the following is true about NULL values in SQL?
#17. Which operator is used to combine the result sets of two queries without duplicates?
#18. What does the TRUNCATE statement do in SQL?
#19. Which clause is used to rename a column in the result set?
#20. What is the result of SELECT 2/0; in SQL?
#21. Which SQL statement is used to create a stored procedure?
#22. How do you retrieve only the top 5 rows from a result set in SQL?
#23. What does the RANK() function do in SQL?
#24. What is a CTE (Common Table Expression) in SQL?
#25. What does the PARTITION BY clause do in SQL?
#26. Which aggregate function is used to calculate the average value of a numeric column?
#27. What type of join includes all rows from the left table, even if there are no matches in the right table?
#28. What does the EXPLAIN statement do in SQL?
#29. Which function is used to concatenate strings in SQL?
#30. What does the CASE statement do in SQL?
#31. Which keyword is used to remove duplicate rows from a query’s result set?
#32. What is the result of this query? SELECT 5 + NULL;
#33. How do you calculate the number of rows affected by a query?
#34. Which SQL function can be used to extract the year from a date column?
#35. What is a SELF JOIN in SQL?
#36. Which of the following clauses can only be used with GROUP BY?
#37. What does the LIMIT clause do in SQL?
#38. Which operator checks for the presence of a value in a list?
#39. What does the MOD() function return in SQL?
#40. What is the main use of the CHECK constraint in SQL?
Previous
Finish