Jani Mani Jani Mani - 6 months ago 11
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.

EDITED IMAGE

Answer
select QTY,count(*) from table group by QTY
Comments