Jani Mani Jani Mani - 2 years ago 115
SQL Question

How to Group By Qty in SQL Server 2008 R2

enter image description here

I am using SQL Server 2008 R2. I want to get group by qty as describe in image attached.


Answer Source
select QTY,count(*) from table group by QTY
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download