Yurttas/PL/DBL/postgres/F/01/Bank/q091.sql

From ZCubes Wiki
Revision as of 00:38, 5 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">/* REM REM q091.sql REM REM Find all customers who have a loan at the bank and REM the cities in which they live. REM ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1/*
 2REM
 3REM q091.sql
 4REM
 5REM Find all customers who have a loan at the bank and
 6REM the cities in which they live.
 7REM
 8*/
 9
10SELECT current_schema();
11SET search_path to "bank";
12
13SELECT B.customername, C.customercity
14FROM Borrower B, Customer C
15WHERE B.customername = C.customername;