I would appreciate if anybody could give me logic to pull data for the last quarter from the database. right now to pull for 1 month I am using
sysdate(add_months('mmyyyy'-1) some thing on these lines.
If you have an index on your date var, be sure to pre calculate and store the result of the INTNX expressions in macro variables, otherwise you won't hit the index when using WHERE.
Regards,
Linus
Data never sleeps
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.