Hello Everyone,
I have a cross table query in Access that I need to run in SQL Server. Here is the code:
I am running SQL Server 2005.
I get the error message:
Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'trackapps'.
Msg 170, Level 15, State 1, Line 5
Line 5: Incorrect syntax near 'PIVOT'.
I would appreciate any help on this.
TIA
Kurt
I have a cross table query in Access that I need to run in SQL Server. Here is the code:
Code:
TRANSFORM Sum([track apps].Apps) AS SumOfApps
SELECT [track apps].Branch
FROM [track apps]
GROUP BY [track apps].Branch
PIVOT [track apps].MONTH;
I am running SQL Server 2005.
I get the error message:
Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'trackapps'.
Msg 170, Level 15, State 1, Line 5
Line 5: Incorrect syntax near 'PIVOT'.
I would appreciate any help on this.
TIA
Kurt