Initial Ruby code for displaying a main menu, while we learn ruby...
[capital-apms.git] / dba / views.sql
blob7706ab8b0f238d9140acb9079cbcb9338ff2e568
1 CREATE OR REPLACE VIEW yearsummary AS
2 SELECT entitytype, entitycode, accountcode
3 , sum(balance) AS balance
4 , financialyearcode
5 FROM accountbalance LEFT JOIN month USING (monthcode)
6 GROUP BY entitytype, entitycode, accountcode, financialyearcode;
8 GRANT SELECT ON yearsummary TO general;