P
Pablo
Is it possible to use crosstab query as a subquery for another query. I
tried something like this in SQL view for query project:
SELECT [New Crosstab Query].[ClientID] FROM
(TRANSFORM Sum(TabToSum.[Operation Amount]) AS [Sum Of Operation Amount]
SELECT TabToSum.ClientID AS [Client No]
FROM TabToSum
GROUP BY TabToSum.ClientID
PIVOT TabToSum.[Operation Description])
AS [New Crosstab Query]
I didn't work.... Trying to execute it caused an error message to appear -
"Syntax error in FROM clause" - indicating the TRANSFORM word.
Please note, that a substring of the above SQL command between TRANSFORM and
PIVOT sections is a valid SQL query (a crosstab query). If I try another
type of subquery, whose SQL command to retrieve it starts with SELECT
keyword, everything is ok?
Why is it so? How to deal with the problem?
tried something like this in SQL view for query project:
SELECT [New Crosstab Query].[ClientID] FROM
(TRANSFORM Sum(TabToSum.[Operation Amount]) AS [Sum Of Operation Amount]
SELECT TabToSum.ClientID AS [Client No]
FROM TabToSum
GROUP BY TabToSum.ClientID
PIVOT TabToSum.[Operation Description])
AS [New Crosstab Query]
I didn't work.... Trying to execute it caused an error message to appear -
"Syntax error in FROM clause" - indicating the TRANSFORM word.
Please note, that a substring of the above SQL command between TRANSFORM and
PIVOT sections is a valid SQL query (a crosstab query). If I try another
type of subquery, whose SQL command to retrieve it starts with SELECT
keyword, everything is ok?
Why is it so? How to deal with the problem?