August 10, 2016 at 5:04 am
Hello
I have a simple statement that starts:
SELECT a.product, MONTH(a.saledate) AS Month, Count(*) AS Total
Which yields, for example,
Product Month Total
Bike 8 1000
Please can anyone advise if it's possible to add the month's name to this query and also, is it possible to get a monthly total to appear as well?
Thanks
August 10, 2016 at 6:32 am
August 10, 2016 at 7:22 am
For your second requirement you can achieve that using a window function. If you want an example please provide DDL and sample data. Luis' signature has links on how best to post those.
August 10, 2016 at 8:29 am
Y.B. (8/10/2016)
For your second requirement you can achieve that using a window function. If you want an example please provide DDL and sample data. Luis' signature has links on how best to post those.
As this is a reporting services forum, I believe that the window function is not needed. Just need to add a group to the report.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply