--:--









Quiz for COUNT() Function

Course: SQL | Subject: SQL | Topic: SQL Functions



Logo

Q1: What does the COUNT() function return?

Logo

Q2: What does the COUNT() function do in SQL?

Logo

Q3: Which of the following returns total number of rows in a table?

Logo

Q4: What is the difference between COUNT(*) and COUNT(column_name)?

Logo

Q5: Which function counts only unique values?

Logo

Q6: What will COUNT(NULL) return?

Logo

Q7: To count all unique departments in "employees" table?

Logo

Q8: Which aggregate function can be used with COUNT()?

Logo

Q9: What does COUNT(1) return?

Logo

Q10: Is COUNT() a group function?

Logo

Q11: What is the result of COUNT(*) on an empty table?

Logo

Q12: What is the purpose of GROUP BY with COUNT()?

Logo

Q13: Which clause can be used to filter results after COUNT()?

Logo

Q14: Which SQL keyword is used to rename COUNT result?

Logo

Q15: Which SQL returns number of orders per customer?

Logo

Q16: Can COUNT() be used in subqueries?

Logo

Q17: What does COUNT(DISTINCT column_name) exclude?

Logo

Q18: What happens if COUNT() is used without FROM clause?

Logo

Q19: Which clause must be used with COUNT() for group analysis?

Logo

Q20: Can COUNT() be used on text columns?

Logo

Q21: Which statement returns number of employees per department?

Are you ready to start test? Set your time limit