Hello! I am using Teradata release 13.00.01.03. I am having a terrible time with some syntax. I was hoping someone could help?
Select Field 1, Field2, Field3
from EDWDEV_VIEW.Table1
Where CURRENCY= 'EUR' AND
EXTRACT(YEAR from (EFF_OUT_Y))=9999 AND
CAST(START_Y (DATE,FORMAT 'YYYY-MM-DD')) AS DATE) <= CAST('2013-03-26' (DATE,FORMAT 'YYYY-MM-DD')) AS DATE)
My problem is with the syntax on the last line. I want to find where START_Y is less than or equal to the date provided ('2013-03-26'). When I run the above, it will return results that are NOT less than or equal to.
Any thoughts??
Thank you!!
Forums: