hi,
I have table called Table1 with the following structure and data
Table1
------------
ID Ref No Name Quantity
1 0001 N1 100
2 N1 150
Here i have the same item but one is based on reference number and one is not referenced. I need output as 1 row and Quantity as 2 columns namely Referenced Quantity and UnReferenced Quantity
Expected Output:
ID Name ReferencedQuantity UnReferencedQuantity
1 N1 100 150