Connecting Tech Pros Worldwide Forums | Help | Site Map

2 or more crosstab queries brought together with UNION

Member
 
Join Date: Apr 2007
Location: Wales
Posts: 49
#1: May 5 '07
Hi all

Anybody had experience bring together 2 or more crosstab queries using the UNION?
ALL 3 crosstabs come from 3 sourcing queries from the same table so of course normally runnning 3 crosstabs at the sametime throws an error

I have to pull 3 crosstabs together. All are laid out as

The first is those number of people starting a training programme

Row
Training Programme

Heading
Period number. (This is set 1 to 12)

Then we have the above format but for those leaving and the third is for those number acheiving the training programme.
I will be able to set up a simple text box situation in a later report to show the % of leavers acheiving the training.

any ideas??

msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,908
#2: May 5 '07

re: 2 or more crosstab queries brought together with UNION


Quote:

Originally Posted by garethfx

Hi all

Anybody had experience bring together 2 or more crosstab queries using the UNION?
ALL 3 crosstabs come from 3 sourcing queries from the same table so of course normally runnning 3 crosstabs at the sametime throws an error

I have to pull 3 crosstabs together. All are laid out as

The first is those number of people starting a training programme

Row
Training Programme

Heading
Period number. (This is set 1 to 12)

Then we have the above format but for those leaving and the third is for those number acheiving the training programme.
I will be able to set up a simple text box situation in a later report to show the % of leavers acheiving the training.

any ideas??

Can you post the sql of the three crosstabs so we can get a better idea what you are talking about. Also give more detail on the result you are trying to achieve.
Member
 
Join Date: Apr 2007
Location: Wales
Posts: 49
#3: May 6 '07

re: 2 or more crosstab queries brought together with UNION


Ill look at the code on tuesday - I'm not in the office until then

many thanks for replying

Gareth
Reply