Yurttas/PL/DBL/postgres/F/01/Bank/q06.sql
1/*
2REM
3REM q06.sql
4REM
5REM Find all customers of the Perryridge branch, i.e., find
6REM everyone who has an account, a loan, or both.
7REM
8*/
9
10SELECT current_schema();
11SET search_path to "bank";
12
13(SELECT customername
14 FROM Depositor
15 WHERE branchname = 'Perryridge')
16UNION
17(SELECT customername
18 FROM Borrower
19 WHERE branchname = 'Perryridge');