--:--









Quiz for Aggregate Functions and Grouping

Course: Database Management System | Subject: Unit 3 | Topic: SQL and Advanced SQL



Logo

Q1: Which SQL function returns the total number of rows?

Logo

Q2: Which aggregate function calculates the average value?

Logo

Q3: Which function returns the largest value in a column?

Logo

Q4: Which aggregate function returns the smallest value?

Logo

Q5: Which function returns the sum of all values in a numeric column?

Logo

Q6: What does GROUP BY do in an SQL query?

Logo

Q7: Which clause filters grouped records based on aggregate conditions?

Logo

Q8: Can aggregate functions be used without GROUP BY?

Logo

Q9: Which aggregate function can count only distinct values?

Logo

Q10: What happens if you use aggregate functions on columns with NULL values?

Logo

Q11: Which function counts all rows including NULLs?

Logo

Q12: Which clause cannot be used with aggregate functions?

Logo

Q13: What will this query return? SELECT department, COUNT(*) FROM employees GROUP BY department;

Logo

Q14: Which aggregate function can be used to calculate total salary?

Logo

Q15: How do you filter groups having more than 5 employees?

Logo

Q16: Which of these is NOT an aggregate function?

Logo

Q17: What does this SQL do? SELECT MAX(salary) FROM employees;

Logo

Q18: Which function returns the median?

Logo

Q19: Which aggregate function works with dates?

Logo

Q20: Can GROUP BY be used with multiple columns?

Are you ready to start test? Set your time limit