SQL Server 2000 Enterprise SP3
I have a budegt table that has a row record for each budget month for each GL account. 12 rows per GL Account
I want to write a query that will return 1 row per glaccount with a column for each periodid.
Table structure is;
BudgetID, GL Acct, PeriodID, Budget Amount.
Need help with query to "pivot?" the 12 periodid and balances into columns.
Thanks,
Andrew
I have a budegt table that has a row record for each budget month for each GL account. 12 rows per GL Account
I want to write a query that will return 1 row per glaccount with a column for each periodid.
Table structure is;
BudgetID, GL Acct, PeriodID, Budget Amount.
Need help with query to "pivot?" the 12 periodid and balances into columns.
Thanks,
Andrew