SELECT *
FROM CLIENT
WHERE CLIENT_REG_DATE > DATEADD(year,-1,GETDATE())
GROUPBY MONTH(CLIENT_REG_DATE).
I put into Apex Oracle and run it and it says
SQL command not properly ended
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is neither a
DATEADDnor agetdate()nor amonth()function in Oracle.For a list of all available date functions, please refer to the manual:
http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions002.htm#i88891
And statements have to be terminated with a
;And if you are using
SELECT *the group by is definitely not going to work either.Without specifying in more detail what you want to group it’s hard to tell, but start with something like this: