michaela18
Technical User
I have the following query:
WHERE date1= '20100210'
-- and date2 <= '20100212'
Okay this is complicated, hard to explain.
This is something i run every day, mon-fri.
I want date1 to be 4 business days prior to today's date. So today is 03/01/2010 then date1 should be 02/23/2010. Tomorrow is 3/2, then date 1 should be 2/24.
date2 should be disregarded if date1 lands on tuesday-friday but if it lands on a monday, say if i was running the query on 3/5, then date1=3/1, so if it lands on a monday, then date2 <= the previous friday which is 2/26.
WHERE date1= '20100210'
-- and date2 <= '20100212'
Okay this is complicated, hard to explain.
This is something i run every day, mon-fri.
I want date1 to be 4 business days prior to today's date. So today is 03/01/2010 then date1 should be 02/23/2010. Tomorrow is 3/2, then date 1 should be 2/24.
date2 should be disregarded if date1 lands on tuesday-friday but if it lands on a monday, say if i was running the query on 3/5, then date1=3/1, so if it lands on a monday, then date2 <= the previous friday which is 2/26.