T
tkosel
I have two pass through queries that each provide raw data to a crosstab
query from a SQL Server Database.
Each crosstab query yeilds results as illustrated below.
Crosstab1 Query
ProductName StationName Date/Time Char1Value Char2Value etc.
Test Station1 01/01/2008 1.1 2.2
Test Station1 01/02/2008 1.0 2.8
The crosstab is on the Char#Value, and the number of columns will vary
everytime I run the query. In my crosstab, of course the Char#Value heading
is replaced by the Char#Value data. It works fine, as expected.
Crosstab2 Query
ProductName StationName Date/Time Label1Value Label2value etc.
Test Station1 01/01/2008 Test
Test Station1 01/02/2008 String Jon
This crosstab is on the Label#Value and the number of columns will vary
everytime I run the Query. In my crosstab, of course the Label#Value heading
is replaced by the Labelr#Value data. It works fine too.
What I actually want to see in the final query is:
Product Station Date/Time Char1Value Char2Value Label1Value Label2value
etc.
Test Station1 01/01/2008 1.1 2.2 Test
Test Station1 01/02/2008 1.0 2..8 String Jon
If I could have more than one column heading field in my crosstab query, I
could do it in one crosstab query. Does anyone have any idea how this could
be done? Basically what I am trying to do is combine data from two different
crosstab queries.
Any help or other suggestions would be much appreciated!
query from a SQL Server Database.
Each crosstab query yeilds results as illustrated below.
Crosstab1 Query
ProductName StationName Date/Time Char1Value Char2Value etc.
Test Station1 01/01/2008 1.1 2.2
Test Station1 01/02/2008 1.0 2.8
The crosstab is on the Char#Value, and the number of columns will vary
everytime I run the query. In my crosstab, of course the Char#Value heading
is replaced by the Char#Value data. It works fine, as expected.
Crosstab2 Query
ProductName StationName Date/Time Label1Value Label2value etc.
Test Station1 01/01/2008 Test
Test Station1 01/02/2008 String Jon
This crosstab is on the Label#Value and the number of columns will vary
everytime I run the Query. In my crosstab, of course the Label#Value heading
is replaced by the Labelr#Value data. It works fine too.
What I actually want to see in the final query is:
Product Station Date/Time Char1Value Char2Value Label1Value Label2value
etc.
Test Station1 01/01/2008 1.1 2.2 Test
Test Station1 01/02/2008 1.0 2..8 String Jon
If I could have more than one column heading field in my crosstab query, I
could do it in one crosstab query. Does anyone have any idea how this could
be done? Basically what I am trying to do is combine data from two different
crosstab queries.
Any help or other suggestions would be much appreciated!