SELECT * FROM salary;
SELECT deptId, MAX(sal) FROM salary;
SELECT empId, deptId, MAX(sal) FROM salary;
SELECT deptId, MAX(sal), AVG(sal) , MIN(sal) FROM salary GROUP BY deptId;
SELECT empId, deptId, MAX(sal) FROM salary GROUP BY deptId;
SELECT empId, deptId, MIN(sal) FROM salary GROUP BY deptId;
SELECT empId, deptId, AVG(sal) FROM salary GROUP BY deptId;
SELECT empId, deptId, SUM(sal) FROM salary GROUP BY deptId;
SELECT empId, deptId, COUNT(sal) FROM salary GROUP BY deptId;
SELECT * FROM salary;
SELECT
COUNT(*),
COUNT(1),
COUNT(66),
COUNT(88),
COUNT(empId),
COUNT(deptId),
COUNT(sal),
COUNT('aaa'),
COUNT('bbb'),
COUNT(0),
COUNT(NULL)
FROM
salary;