Yurttas/PL/DBL/mssql/F/01/Bank/q100.sql
Revision as of 04:26, 3 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: S...")
1/*
2REM
3REM q100.sql
4REM
5REM Find all customers with both loan and an account
6REM at the 'Perryridge' branch.
7REM
8*/
9
10SELECT customername
11FROM Depositor
12WHERE branchname = 'Perryridge'
13 AND customername IN (SELECT customername
14 FROM Borrower
15 WHERE branchname = 'Perryridge');