Yurttas/PL/DBL/postgres/F/01/Bank/a02.sql
1/*
2REM
3REM a02.sql
4REM
5REM Find the number of depositors for each branch.
6REM
7*/
8
9SELECT current_schema();
10SET search_path to "bank";
11
12SELECT branchname, COUNT(DISTINCT customername)
13FROM Depositor
14GROUP BY branchname;