Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql stmt - load period data from either of two tables

Status
Not open for further replies.

dalex

MIS
Apr 20, 2004
16
US
Hello,

I seek SQL syntax that would help me achieve the following:

If current month = Aug, then get data for all previous months,(i.e Jul, Jun, May, etc...) from the ACTUALS table. Else pull data for the months from the PLAN table (i.e Aug, Sep, Oct, etc...)

Please let me know if I can clarify.

FYI - This is for a DTS process.

Thanks so much,

Dalex
 
nomadicalloy,

Could you expand on your response and provide a little more info as to how this syntax will resolve my issue? What does this syntax do?

Thank you,

Dalex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top