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

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 v01.sql REM REM Consider a view consisting of REM branch names and the names of customers. REM: SELECT c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)
 1/*
 2REM
 3REM v01.sql
 4REM
 5REM Consider a view consisting of
 6REM branch names and the names of customers.
 7REM
 8*/
 9
10SELECT current_schema();
11SET search_path to "bank";
12
13CREATE VIEW AllCustomer
14  AS (SELECT branchname, customername
15      FROM Depositor)
16     UNION
17     (SELECT branchname, customername
18      FROM Borrower);