I want to count unique BOOKING_NUMBERS, to display the total next to each STAFF_ID; I'm using the following statement:
SELECT c.Staff_Id , c.(COUNT Booking_Number) AS "Number of Lessons"
FROM AM_Lessons c JOIN AM_Staff m
ON (c.Staff_Id = m.Staff_Id)
ORDER BY c.Staff_Id
I am getting the following error, despite all Column names and tables being correct
ORA-01747: invalid user.table.column, table.column, or column specification
What is the correct syntax?