niloufar68
New member
- Local time
- Today, 09:53
- Joined
- Jul 13, 2011
- Messages
- 7
Hi;
I'm trying to union two cross-tab queris. I get a syntax error each time I try to run the code. The code is the following:
TRANSFORM Count(Table1.Q1) AS CountOfQ1
SELECT Table1.Date
FROM Table1
GROUP BY Table1.Date
PIVOT Table1.Q2
UNION
TRANSFORM Count(Table1.Q2) AS CountOfQ2
SELECT Table1.Date
FROM Table1
GROUP BY Table1.Date
PIVOT Table1.Q1;
I get this error:
Syntax error, missing operator in query expression 'Table1.Q2'
Can anyone please help me with this? is it even possible to combine two crosstab queries?
Thank you,
I'm trying to union two cross-tab queris. I get a syntax error each time I try to run the code. The code is the following:
TRANSFORM Count(Table1.Q1) AS CountOfQ1
SELECT Table1.Date
FROM Table1
GROUP BY Table1.Date
PIVOT Table1.Q2
UNION
TRANSFORM Count(Table1.Q2) AS CountOfQ2
SELECT Table1.Date
FROM Table1
GROUP BY Table1.Date
PIVOT Table1.Q1;
I get this error:
Syntax error, missing operator in query expression 'Table1.Q2'
Can anyone please help me with this? is it even possible to combine two crosstab queries?
Thank you,