Yurttas/PL/DBL/mssql/F/01/Bank/q101.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 q101.sql REM REM Find all customers with both loan and an account REM at the 'Perryridge' branch. REM: /...")
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(SELECT customername
17 FROM Depositor
18 WHERE branchname = 'Perryridge')
19INTERSECT
20(SELECT customername
21 FROM Borrower
22 WHERE branchname = 'Perryridge');