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

Revision as of 00:37, 5 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">/* REM q011.sql REM REM Find customer by any(&1) attribute from REM any branch('&2') who has a loan. REM REM &1(attrib...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 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%';