--:--









Quiz for Aggregate Functions

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



Logo

Q1: Which of the following is an aggregate function in SQL?

Logo

Q2: Which SQL function returns the number of rows?

Logo

Q3: Which aggregate function gives the total of a numeric column?

Logo

Q4: Which function calculates the average value of a numeric column?

Logo

Q5: Which function returns the smallest value in a column?

Logo

Q6: Which of the following functions can be used with GROUP BY?

Logo

Q7: What will COUNT(*) return?

Logo

Q8: Which clause is necessary for aggregate functions to group rows?

Logo

Q9: What is the purpose of the HAVING clause?

Logo

Q10: Which function counts only non-null values?

Logo

Q11: Which function ignores NULL values by default?

Logo

Q12: Which function is used to find the total number of unique values?

Logo

Q13: Which aggregate function can accept DISTINCT keyword?

Logo

Q14: Can we use WHERE clause with aggregate functions?

Logo

Q15: Which function returns a single result per group in GROUP BY?

Logo

Q16: Which function helps calculate average salary?

Logo

Q17: Which clause restricts rows before aggregation?

Logo

Q18: Which function gives the total number of employees?

Logo

Q19: What does COUNT(DISTINCT department_id) return?

Logo

Q20: Which aggregate function returns the sum of a column values?

Are you ready to start test? Set your time limit