R
ripon via AccessMonster.com
Hi: I have a query1 that has 2 PIVOT columns.
SELECT sum(totalmon) AS TOT1 from tab1
Where year=2004 or year=2005
pivot year
----result
2004-------2005
1000-------200
3080-------500
In my 2nd query2, how can I ref to these 2 fields. As year changes (2005 or
2006), how can I ref to these 2 fields.
Query2: Select col1, col2 from query1;
----Query Code not working.
Thanks in advance
SELECT sum(totalmon) AS TOT1 from tab1
Where year=2004 or year=2005
pivot year
----result
2004-------2005
1000-------200
3080-------500
In my 2nd query2, how can I ref to these 2 fields. As year changes (2005 or
2006), how can I ref to these 2 fields.
Query2: Select col1, col2 from query1;
----Query Code not working.
Thanks in advance