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
Of course:
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