I have the following result set:
Type | Method | Amount
Type1 Cash Amount
Type1 Check Amount
Type2 Cash Amount
Type2 Check Amount
Type3 Cash Amount
Type3 Check Amount
And I want to make it look like this:
Type | Cash | Check
Type1 Amount Amount
Type2 Amount Amount
Type3 Amount Amount
How can I achieve this in T-SQL (2005 syntax ok)? I need to pivot by type (1, 2, 3...)