Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Teradata SQL? - response (1) by dnoeth

$
0
0

Of course:

SELECT MONTH_BGN_DATE 
FROM MONTHDAY_DIM 
WHERE MONTHDAY_KEY = ADD_MONTHS(DATE , -4)
OR  MONTHDAY_KEY = ADD_MONTHS(DATE , -3) 

If these are your actual queries, the 2nd closing parens "ADD_MONTHS(DATE , -3))" seems to indicate it's an excerpt from a more complex statement.
 
Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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