Syntax Error-Help!!
My error "SQL0180N The syntax of the string representation of a
datetime value is incorrect. SQLSTATE=22007" .
I'm using yyyy-mm-dd. I can see the dates in a column on another
query as 2007-06-17 23:00:13.827584 which is yyyy-mm-dd time(i
guess).
My attempt:
SELECT <column_list>
FROM ABXDB01.mdall_rec_holdg
WHERE ABX_REQ_BUCKT = 'OK'
AND CMPL_Q_DT '2008-03-01';
2nd attempt:
AND CMPL_Q_DT '2008-03-01'
3rd attempt:
AND CMPL_Q_DT '2008-03-01%';
4th attempt without the DT works ok:
SELECT <column_list>
FROM ABXDB01.mdg_req_holdg
WHERE ABX_REQ_BUCKT = 'OK'
Any ideas?
Thanks,
Ty