COUNT
function.GROUP BY
and HAVING
clauses.SELECT COUNT(*) FROM student;
returns all rows.SELECT COUNT(age) FROM student;
returns non-null age entries.SELECT COUNT(DISTINCT age) FROM student;
returns unique age values.SELECT SUM(salary) FROM student;
returns the sum of all salary values.SELECT SUM(DISTINCT age) FROM student;
returns the sum of unique age values.SELECT AVG(age) FROM student;
returns the average age.SELECT AVG(DISTINCT age) FROM student;
calculates the average of unique ages.SELECT MIN(salary) FROM student;
returns the minimum salary.SELECT MAX(salary) FROM student;
returns the maximum salary.COUNT
, SUM
, AVERAGE
, MINIMUM
, and MAXIMUM
were covered.GROUP BY
and HAVING
clauses.