Yurttas/PL/DBL/postgres/F/01/Bank/q011.sql

 1/*
 2REM q011.sql
 3REM
 4REM Find customer by any(&1) attribute from
 5REM any branch('&2') who has a loan.
 6REM
 7REM &1(attribute) and '&2'(value) are interactive values.
 8REM
 9*/
10
11/*
12
13    this won't work.
14
15*/
16
17SELECT current_schema();
18SET search_path to "bank";
19
20SELECT &1
21FROM Borrower
22WHERE branchname LIKE '&2%';