Clipper2000
Programmer
Here is my simple example TRANSFORM query:
TRANSFORM sum(Table.Amount) as Amount
SELECT table.field1, table.field2, etc ...
From Table INNER JOIN TheOtherTable
GROUP BY Table.field1, Table.field2
PIVOT ([Period] & [Year])
This query will return 2 columns with the names:
92004 (meaning September 2004)
102004 (meaning October 2004)
I would like the column names to be:
Current Month
Prior Month
When I modify the pivot clause to read:
PIVOT ([Period] & [Year]) IN ("Current Month", "Prior Month")
I get the column names to read correctly, but no amounts showed up.
I look forward to hear your answer on this intersting question.
TRANSFORM sum(Table.Amount) as Amount
SELECT table.field1, table.field2, etc ...
From Table INNER JOIN TheOtherTable
GROUP BY Table.field1, Table.field2
PIVOT ([Period] & [Year])
This query will return 2 columns with the names:
92004 (meaning September 2004)
102004 (meaning October 2004)
I would like the column names to be:
Current Month
Prior Month
When I modify the pivot clause to read:
PIVOT ([Period] & [Year]) IN ("Current Month", "Prior Month")
I get the column names to read correctly, but no amounts showed up.
I look forward to hear your answer on this intersting question.