select station_id,count(case_id) from emer_complaint group by station_id
Above query returning the correct result. But, when i’m trying this query for showing the record in year wise. Then it shows the error ORA-00904: "YEAR": invalid identifier
select year(date_time)
,count(case_id)
from emer_complaint
group by year(date_time);
the datatype of date_time is Timestamp.
Thanks in advance.!!
1 Answer