I am trying to build a recordset off of a teradata table using ADO. I am having a problem determining the proper syntax for the date field. I have used numerous SQL statements and they all return "Invalid Date". Here are some of the sample select statements i have tried...
SELECT * FROM TABLE WHERE CALL_DATE =select cast('20070801' as date format 'yyyymmdd')
SELECT * FROM TABLE WHERE CALL_DATE={d'2007-08-22'}
SELECT * FROM TABLE WHERE CALL_DATE=date('2007-08-22')
Please help!
SELECT * FROM TABLE WHERE CALL_DATE =select cast('20070801' as date format 'yyyymmdd')
SELECT * FROM TABLE WHERE CALL_DATE={d'2007-08-22'}
SELECT * FROM TABLE WHERE CALL_DATE=date('2007-08-22')
Please help!