SELECT MAX(total), COUNT(*)
FROM
(SELECT salary * months total FROM Employee) t,
(SELECT MAX(salary * months) M FROM Employee)
WHERE M = total;
SELECT MAX(t.total), COUNT(*)
FROM (SELECT salary * months total FROM Employee) t
WHERE t.total = (SELECT MAX(salary * months) M FROM Employee);