Yurttas/PL/DBL/oracle/F/01/Bank/q100.sql

From ZCubes Wiki
Revision as of 22:51, 4 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div"> REM REM q100.sql REM REM Find all customers with both loan and an account REM at the 'Perryridge' branch. REM SELECT...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1REM
 2REM q100.sql
 3REM
 4REM Find all customers with both loan and an account
 5REM at the 'Perryridge' branch.
 6REM
 7
 8SELECT customername
 9FROM Depositor
10WHERE branchname = 'Perryridge'
11  AND customername IN (SELECT customername
12                       FROM Borrower 
13                       WHERE branchname = 'Perryridge');