Hi All.
I need help on crating a Query that from this table:
Name ! Project ! Area ! Jan ! Feb ! Mar !
---------------------------------------------
John ! A ! Boston ! 1 ! 1 ! 0 !
Peter ! B ! NY ! 0 ! 1 ! 1 !
Paul ! C ! NJ ! 0 ! 0 ! 1 !
John ! D ! PA ! 0 ! 0 ! 1 !
Peter ! E ! Miami ! 1 ! 0 ! 0 !
Paul ! D ! PA ! 1 ! 1 ! 0 !
Gives this result (query result):
! Jan ! Feb ! Mar !
Name ! Project! Area ! Project! Area ! Project ! Area!
-------------------------------------------------------
John ! A ! Boston! A ! Boston! D ! PA !
Peter ! E ! Miami ! B ! NY ! B ! NY !
Paul ! D ! PA ! D ! PA ! C ! NJ !
Can anybody give me a hand on the SQL that I need for generating this query
Thanks
Dan
I need help on crating a Query that from this table:
Name ! Project ! Area ! Jan ! Feb ! Mar !
---------------------------------------------
John ! A ! Boston ! 1 ! 1 ! 0 !
Peter ! B ! NY ! 0 ! 1 ! 1 !
Paul ! C ! NJ ! 0 ! 0 ! 1 !
John ! D ! PA ! 0 ! 0 ! 1 !
Peter ! E ! Miami ! 1 ! 0 ! 0 !
Paul ! D ! PA ! 1 ! 1 ! 0 !
Gives this result (query result):
! Jan ! Feb ! Mar !
Name ! Project! Area ! Project! Area ! Project ! Area!
-------------------------------------------------------
John ! A ! Boston! A ! Boston! D ! PA !
Peter ! E ! Miami ! B ! NY ! B ! NY !
Paul ! D ! PA ! D ! PA ! C ! NJ !
Can anybody give me a hand on the SQL that I need for generating this query
Thanks
Dan