Yurttas/PL/DBL/mysql-f-2010/01/Company-B/q04.sql
Revision as of 02:01, 4 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">→REM REM q04.sql REM REM Find all employees who live in the same city as REM the company they work for. REM: \. s...")
1/*
2REM
3REM q04.sql
4REM
5REM Find all employees who live in the same city as
6REM the company they work for.
7REM
8*/
9
10\. set-db.sql
11
12SELECT E.employeename
13FROM Employee E, Works W, Company C
14WHERE E.employeename = W.employeename
15 AND W.companyname = C.companyname
16 AND E.city = C.city;