Combine duplicate records into one.

solvman

New member
Local time
Today, 13:21
Joined
Nov 15, 2011
Messages
1
Hi,

I've got the following table:

ID First Last Income Type Amount
1 John Dow Salary 300
1 John Dow Over time 50
1 John Dow Commission 75


How can I display it all in one row? Something like that:

ID First Last Salary Over time Commission
1 John Dow 300 50 75


You help is greatly appreciated.

Thanks a lot.
 
maybe also look into correlated subqueries, if the number of correlated rows is known.
 

Users who are viewing this thread

Back
Top Bottom