I am a student this is homework. I use SQL server to check my work but have to write script by hand.
Create and display a VIEW that displays the account balance subtotals for each account group. Account group is defined as the first two digits of the account number. Display a grand total of the balance column at the end of the display.
I have one table with 4 columns. Account(numbers), Description, Short_Description, and Balance(money). The Account numbers range from 100001-610003. COA is the chart of accounts that is an excel link. Thanks for any advice.
This is what I have so far...
CREATE VIEW [account_balance_sums]
AS
SELECT Account, Short_Description,Balance
FROM COA
Where Account, (first two digits 10-61 of account #)
AND sum
GO
SELECT * FROM [account_balance_sums]