Yurttas/PL/DBL/postgres/F/01/Company-B/q02.sql

From ZCubes Wiki
Jump to navigation Jump to search
 1/*
 2REM
 3REM q02.sql
 4REM
 5REM Find the name and city of of all employees who work for
 6REM 'First Bank Corporation'.
 7REM
 8*/
 9
10SELECT current_schema();
11SET search_path to "companyb";
12
13SELECT E.employeename, E.city 
14FROM Employee E, Works W 
15WHERE E.employeename=W.employeename 
16  AND W.companyname='First Bank Corporation';