View Single Post
Join Date: Dec 2008
Posts: 9
Reputation: muek is an unknown quantity at this point 
Solved Threads: 0
muek muek is offline Offline
Newbie Poster

Re: Crazy CrossTab problems

 
0
  #4
Dec 30th, 2008
Ok, I think that I haven't explain myself.

In table "work_machine" I have:
workID | machineID | hours
A | M1 | 1
B | M2 | 3
B | M1 | 5

Now I would like to know how to make the query to obtain the data in the format:

work | machine1 | machine2
A | 1 | 0
B | 3 | 5

Any idea?
Reply With Quote