I have got a Sales table which has fields like
upgrade[yes/no]
date upgraded[datetime]
user[username]
What I want to run a query and show upgrades monthly and yearly wise , for instance i want to generate a report like Jan 2012 [total upgrades made 30, user1 made 10 upgrades , user 2 made 15 upgrades, similarly
user 3 made 5 upgrades. Similarly I want to acheive that for yearly basis too.
Using
SSRS, you could generate multiple groupings fairly easily and display all of this information at-a-glance.In a vanilla T-SQL query, you can do it like this: