Hello,
I have this query in DB2
SELECT * FROM DTINBS WHERE DTDCR = DAYS(CURRENT_DATE) - 1
The format for the where clause should be in YYYYMMDD for it work properly. If I change this query this
SELECT * FROM DTINBS WHERE DTDCR = 20120322 - 1
Everything works no problem, but I should be able...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.