Dateadd to column in select statement
I'm querying a MySQL database that contains a varchar field storing a serial date from excel (so 6/20/2010 appears as 40347). I have no control over the database table or its construction.
I want to do a select statement that groups the lines by month and contains a where clause limiting the rows to "this year".
I've tried select str_to_date(CallDate,'%m/%d/%Y') as NewCallDate but it returns an empty string.
I've tried select Dateadd('d', voicedata.CallDate, '01/01/1900') as NewCallDate but it returns an error saying Element CALLDATE is undefined in VOICEDATA.
Any suggestions on what else to try?
TIA,
Kiyomi
