Yurttas/PL/DBL/mysql/F/01/00/bank/BankTwo/q070.sql
Jump to navigation
Jump to search
1/*
2REM
3REM q070.sql
4REM
5REM Find all customers of the 'Caldwell' branch who have
6REM an account but not a loan.
7REM
8*/
9
10\. set-db.sql
11
12SELECT customername
13FROM Depositor
14WHERE branchname = 'Caldwell'
15 AND customername NOT IN (SELECT customername
16 FROM Borrower
17 WHERE branchname = 'Caldwell');