select extract (year from CRIME_DATE) year,
SUM (CRIME_NO)
from crime
group by select extract (year from CRIME_DATE) CRIME_DATE
order by select extract (year from CRIME_DATE) year
I am trying to use the above query to produce a chart in application builder in apex but to make sure it works i am testing it on SQL commands but i keep getting the missing expression error can anyone help?