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

From ZCubes Wiki
Jump to navigation Jump to search
 1/*
 2REM
 3REM q090.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 Borrower.customername, customercity
14FROM Borrower, Customer
15WHERE Borrower.customername = Customer.customername;