Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Grouping by category

$
0
0
Hi,Thanks to every one who is supporting here.I have a query:Table A: supplierid, suppliername TableB: ordernum, supplierid, category, orderqty, orderdate1) grouping is done by month2) total quantity is irrespective of category qty3) Category would be passed by parameter in storedproc 4) Whole idea is that user wishes to see the how many units of a category has been ordered againt the total quantity of a month I want results something like : ordrnum suppliername categoryqty totalqtyJan 123 abc 100 1000Feb 456 qwe 200 3000Mar 789 str 150 1500what query should be passed to achieve this.Many thanks in advance.sunny

Viewing all articles
Browse latest Browse all 2791

Trending Articles