--:--









Quiz for SELECT Statement

Course: SQL | Subject: SQL | Topic: Data Query Language (DQL)



Logo

Q1: What does the SELECT statement do in SQL?

Logo

Q2: Which keyword is used to eliminate duplicate values in a SELECT query?

Logo

Q3: How can you select all columns from a table?

Logo

Q4: Which clause is used to filter records in SELECT?

Logo

Q5: Which of the following is a valid SELECT query?

Logo

Q6: What is the result of SELECT 2+2?

Logo

Q7: What does SELECT NOW(); return?

Logo

Q8: Which function returns the number of records in a table?

Logo

Q9: How can you rename a column in SELECT output?

Logo

Q10: Which operator checks for pattern matching?

Logo

Q11: Which wildcard represents any number of characters in SQL?

Logo

Q12: Which clause is used to group rows?

Logo

Q13: Which statement returns the current date?

Logo

Q14: Which clause is used to limit number of rows returned?

Logo

Q15: Which SQL keyword is used to combine rows from two queries?

Logo

Q16: Which function returns the maximum value of a column?

Logo

Q17: What does SELECT LENGTH('SQL') return?

Logo

Q18: What is the primary purpose of the SELECT statement in SQL?

Logo

Q19: Which keyword is used to remove duplicate records in a SELECT query?

Logo

Q20: What does SELECT * do in SQL?

Logo

Q21: Which clause in a SELECT statement filters the rows returned?

Logo

Q22: How do you rename a column in the SELECT statement?

Logo

Q23: Which SQL clause sorts the result set of a SELECT query?

Logo

Q24: What is the default sort order of ORDER BY clause?

Logo

Q25: What is used to limit the number of rows returned in a query?

Logo

Q26: Which clause is used to group rows in a SELECT query?

Logo

Q27: Which clause is used to filter groups in SQL?

Logo

Q28: Which keyword combines rows from two or more tables?

Logo

Q29: What does the alias do in SQL SELECT statement?

Logo

Q30: Which character is used for wildcard matching in LIKE clause?

Logo

Q31: How to select distinct department names from a table?

Logo

Q32: Which function returns the number of rows in a SELECT query?

Logo

Q33: What is the output of: SELECT LENGTH("SQL")?

Logo

Q34: Which keyword is used to give a temporary name to a column?

Logo

Q35: Can SELECT be used without FROM clause?

Logo

Q36: Which clause is used to rename columns in the result?

Logo

Q37: Which keyword selects only unique values in a column?

Are you ready to start test? Set your time limit