SQL Quiz for Beginners – Part 1

Q1: Which SQL statement is used to extract data from a database?





Q2: Which clause is used to filter the records returned by a SELECT query?





Q3: Which function returns the number of rows in a result set?





Q4: What is the default sorting order in SQL when using ORDER BY?





Q5: Which SQL clause is used to group rows sharing a property so aggregate functions can be applied?





Q6: What does the SQL INNER JOIN do?





Q7: Which keyword is used to eliminate duplicate records in a SELECT statement?





Q8: Which of the following is a DDL command?





Q9: What will the following query return? SELECT MAX(salary) FROM employees;





Q10: Which SQL keyword is used to sort results in descending order?





SQL Quiz for Beginners – Part 1

Q1: Which SQL statement is used to extract data from a database?





Q2: Which clause is used to filter the records returned by a SELECT query?





Q3: Which function returns the number of rows in a result set?





Q4: What is the default sorting order in SQL when using ORDER BY?





Q5: Which SQL clause is used to group rows sharing a property so aggregate functions can be applied?





Q6: What does the SQL INNER JOIN do?





Q7: Which keyword is used to eliminate duplicate records in a SELECT statement?





Q8: Which of the following is a DDL command?





Q9: What will the following query return? SELECT MAX(salary) FROM employees;





Q10: Which SQL keyword is used to sort results in descending order?