Yurttas/PL/DBL/mysql-f-2010/01/BankOne/q070.sql

From ZCubes Wiki
Revision as of 01:52, 4 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">/* REM REM q070.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)
Jump to navigation Jump to search
 1/*
 2REM
 3REM q070.sql
 4REM
 5REM Find all customers of the 'Perryridge' branch who have
 6REM an account but not a loan.
 7REM
 8*/
 9
10\. set-db.sql
11
12SELECT customername
13FROM Depositor
14WHERE branchname = 'Perryridge'
15  AND customername NOT IN (SELECT customername
16                           FROM Borrower
17                           WHERE branchname = 'Perryridge');