I am trying to get a query to show all the data for event prizes on one line. For example this is an example of my table.
Event_id Place Money
101 1 120
101 2 60
101 3 30
102 1 100
102 2 50
102 3 25
What I want is for the results to look like the following:
Event_id First Second Third
101 120 60 30
102 100 50 25
Any help to accomplish this would be greatly appreciated.
Hope this helps.
If you want learn more about sql tricks, visit this:
Common but Useful MySQL Queries
SEE on SQLFiddle