atendimento_3 Posted September 22, 2016 Share Posted September 22, 2016 In need SQL query returns the month of a date that is in a field of type date in my DB2 database Example:SELECTMONTH(DATE(DBA.ESTOQUE_SINTETICO.DTMOVIMENTO)) AS MES Exception:Reason: DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610, SQLERRMC=null, DRIVER=3.69.66 Errors in Dataset and Query Dialog:- missing EOF at ')'- mismatched input '.' expecting ')'- missing 'FROM' at 'DATE'- no viable alternative at input 'MONTH'- mismatched input '(' expecting ')' Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now