I have the following query which runs fine without the GROUP BY clause.
However when I add the GROUP BY clause, it returns the following error:
"The LEVEL clause includes a reserved word or argument that is misspelled or missing, or the punctuation in incorrect."
Any ideas on what I'm doing wrong?
tia...mike
Code:
SELECT IIf(J.PMT_JOB_STATUS='EXEMPT','EXEMPT','NOT-EXEMPT') AS [Employee Status],
E.PMT_EMP_NAME AS [Employee Name], E.PMT_EMP_SALARY AS [Employee Salary]
FROM PMT_JOBCODE_TABLE AS J, PMT_EMPLOYEE_TABLE AS E
WHERE J.PMT_JOB_TITLE_CODE=E.PMT_JOB_TITLE_CODE;
GROUP BY E.PMT_EMP_SALARY;
"The LEVEL clause includes a reserved word or argument that is misspelled or missing, or the punctuation in incorrect."
Any ideas on what I'm doing wrong?
tia...mike