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

Revision as of 00:38, 5 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">/* REM REM q071.sql REM REM Find all customers of the 'Perryridge' branch who have REM an account but not a loan. REM ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 1/*
 2REM
 3REM q071.sql
 4REM
 5REM Find all customers of the 'Perryridge' branch who have
 6REM an account but not a loan.
 7REM
 8*/
 9
10/*
11
12   MINUS is not implemented this won't work.
13
14*/
15
16SELECT current_schema();
17SET search_path to "bank";
18
19(SELECT customername
20 FROM Depositor
21 WHERE branchname = 'Perryridge')
22MINUS 
23(SELECT customername
24 FROM Borrower
25 WHERE branchname = 'Perryridge');