Reputation: 293
I am using SQL Server 2008 ,
I have an Orders table where it lists two records with different column values.
For ex:
I need to display this as a single row.
Is this possible using SQL Query. How to do that?. Please Suggest
Upvotes: 0
Views: 45
Reputation: 21757
Try this:
select ordernumber, max(salesnumber), max(successfail)
from yourtable
group by ordernumber
Upvotes: 1