11-21-2016 12:28 PM
I am using EG and PROC SQL to pull the YEAR from a Date field.
So I used:
YEAR(Field_Name) AS BID_YEAR
did the same thing for MONTH, however I am getting this error:
NOTE: Invalid argument to function YEAR. Missing values may be generated.
NOTE: Invalid argument to function MONTH. Missing values may be generated.
So, how does this need to be written?
11-21-2016 12:41 PM
Yes, it is coming from an access db, and I checked, it is a date field and there are dates in the tbl. I even went back to make sure I was using the correct syntax and I am
MONTH(BD.BID_DATE) AS BID_MONTH
So I am at a loss...
Need further help from the community? Please ask a new question.