Is there a better way of doing this , I am using SQL Server 2012.
I have a table built by as vendor that looks like the below:
Customer, Date, Desc1, Qty1, Price1, Desc2, Qty2, Price2, Desc3, Qty3, Price3
I want a result set that returns this;
Customer, Date, Desc, Qty, Price
I am doing it today by the following solution , anyone have something better or more efficient?
Select Customer, Date, Desc1, Qty1, Price1
UNION ALL
Select Customer, Date, Desc2, Qty2, Price2
UNION ALL
Select Customer, Date, Desc3, Qty3, Price3