Sql Account Profit Loss Statement