Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Teradata Syntax Trouble - forum topic by smart351

$
0
0

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!!


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>