Im stuck with this, I hope someone can help me with this:
SELECT max(SELECT count(TO_CHAR(hire_date, 'DAY'))
FROM employees
GROUP BY TO_CHAR(hire_date, 'DAY'))
FROM employees;
*
ERROR at line 1:
ORA-00936: missing expression
The output of the subquery looks like that:
TO_CHAR(HIRE_DATE,'DAY') COUNT(TO_CHAR(HIRE_DATE,'DAY'))
---------------------------------------- -------------------------------
THURSDAY 3
SATURDAY 3
WEDNESDAY 4
MONDAY 1
SUNDAY 3
TUESDAY 6
I just want to select TUESDAY