Using SQL 8.0, Windows XP SP1
I would like to create a VIEW that outputs all the Job Types a Contractor has worked on. The following data is in a table called WorkOrders:
Desired output
Can this be done and how should I write the query?
Thanks,
I would like to create a VIEW that outputs all the Job Types a Contractor has worked on. The following data is in a table called WorkOrders:
Code:
Contractor JobType Amount
A 1 20
A 2 30
A 3 50
B 5 150
B 7 150
Code:
Contractor JobTypes TotalAmount
A 1, 2, 3 100
B 5, 7 300
Thanks,