Yurttas/PL/DBL/mysql/F/01/00/bank/Bank/q101.sql

From ZCubes Wiki
Revision as of 15:52, 3 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">→‎REM REM q101.sql REM REM Find all customers with both loan and an account REM at the 'Perryridge' branch. REM: /...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1/*
 2REM
 3REM q101.sql
 4REM
 5REM Find all customers with both loan and an account
 6REM at the 'Perryridge' branch.
 7REM
 8*/
 9
10/*
11
12   INTERSECT is not implemented this won't work.
13
14*/
15
16\. set-db.sql
17
18(SELECT customername
19 FROM Depositor
20 WHERE branchname = 'Perryridge')
21INTERSECT
22(SELECT customername
23 FROM Borrower 
24 WHERE branchname = 'Perryridge');