Exercise #59 |
||
Calculate the remainder at each outlet for the database with accounts drawn not more than once a day.Result set: point, remainder. Solution 2.2.1
In the FROM clause in the each subqueries it is calculated the summa of cash income and outcome in each reception point. These subqueries are joined by the equal numbers of reception points, which allows line by line to calculate the cash balance in each point:ss.inc dd.out. It would seem that everything is correct; however, the decision 2.2.1 contains a bug. Try to find it. |