Combine duplicate records into one. (1 Viewer)

solvman

New member
Local time
Yesterday, 19:07
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.
 

bparkinson

Registered User.
Local time
Yesterday, 20:07
Joined
Nov 13, 2010
Messages
158
maybe also look into correlated subqueries, if the number of correlated rows is known.
 

Users who are viewing this thread

Top Bottom