I have a union query in my database that calculates the average hours it takes to install equipment for various customers. Right now, it lists everything down, like this:
Customer Type ------ Average Install Hours ---- Install Month --- Install Year
Strategic ------------ 4.5 ---------------------- 4 ---------------2013
Strategic ------------ 4.2 ---------------------- 3 ---------------2013
Strategic ------------ 3.6 ---------------------- 2 ---------------2013
Regional ------------- 2.5 ---------------------- 4 ---------------2013
and so forth.
I would like to take these results and restructure them, but I'm not sure how to do that. I want my results to look like this:
Install Month ----- Install Year ----- Strategic ----- Regional
4 ------------------ 2013 ----------- 4.5 ----------- 2.5
3 ------------------ 2013 ----------- 4.2 ----------- 2.0
2 ------------------ 2013 ----------- 3.6 ----------- 1.5
Is this possible? Any assistance you can provide would be greatly appreciated.
Customer Type ------ Average Install Hours ---- Install Month --- Install Year
Strategic ------------ 4.5 ---------------------- 4 ---------------2013
Strategic ------------ 4.2 ---------------------- 3 ---------------2013
Strategic ------------ 3.6 ---------------------- 2 ---------------2013
Regional ------------- 2.5 ---------------------- 4 ---------------2013
and so forth.
I would like to take these results and restructure them, but I'm not sure how to do that. I want my results to look like this:
Install Month ----- Install Year ----- Strategic ----- Regional
4 ------------------ 2013 ----------- 4.5 ----------- 2.5
3 ------------------ 2013 ----------- 4.2 ----------- 2.0
2 ------------------ 2013 ----------- 3.6 ----------- 1.5
Is this possible? Any assistance you can provide would be greatly appreciated.