Hi Everyone.
I'm looking for help in union cross tabs. I need to combine one result that has, for example, 6 columns of results with a second cross tab that has just 1 column of results. The left 2 columns are identical which are in my select statements are indentical.
I receive an error stating the columns do not match when trying to execute the union statement to merge the result sets. Is there a way to make this work?
For my objective with this, my 2nd crosstab will always produce just one column values (NewBU), but my first crosstab will have variable columns. My report is being used to produce a before/after scenario of when you need to show for example: 5 businesses with various staffing levels and when consolidated, the new business would be comprised of x number of positions per level. Something like:
PositionID...Description....BU1....BU2....BU3....BU4....BU5.....NewBU
Admin....Administration....3.....2......2......4......2.......4
Mgr.....Manager......10.....10......10......10......10......25
Staff....Staff Clerk.....19.....26......21......23.....24......55
Is there a way to use the Union query successfully to join these two cross tabs?
Any help is appreciated.
I'm looking for help in union cross tabs. I need to combine one result that has, for example, 6 columns of results with a second cross tab that has just 1 column of results. The left 2 columns are identical which are in my select statements are indentical.
I receive an error stating the columns do not match when trying to execute the union statement to merge the result sets. Is there a way to make this work?
For my objective with this, my 2nd crosstab will always produce just one column values (NewBU), but my first crosstab will have variable columns. My report is being used to produce a before/after scenario of when you need to show for example: 5 businesses with various staffing levels and when consolidated, the new business would be comprised of x number of positions per level. Something like:
PositionID...Description....BU1....BU2....BU3....BU4....BU5.....NewBU
Admin....Administration....3.....2......2......4......2.......4
Mgr.....Manager......10.....10......10......10......10......25
Staff....Staff Clerk.....19.....26......21......23.....24......55
Is there a way to use the Union query successfully to join these two cross tabs?
Any help is appreciated.