This is the one area where Access does it better than SQL Server. SQL Server does not provide the TRANSFORM...PIVOT command (which is
not SQL Standard). To do this in standard SQL requires use of the CASE expression, as:
Code:
SELECT Country,
SUM(CASE WHEN [Date]='2000' THEN [Amount Raised] ELSE 0 END) as Amount2000,
SUM(CASE WHEN [Date]='2001' THEN [Amount Raised] ELSE 0 END) as Amount2001
FROM yourTable
GROUP BY Country
P.S. Don't use "Date" as a column name. It's just not a helpful name (what date?). (especially when your data values aren't a date) :)
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com