Yurttas/PL/DBL/mssql/F/01/Company-A/q03.sql

From ZCubes Wiki
Revision as of 04:28, 3 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">→‎REM REM q03.sql REM REM Find the names of employees who are directly supervised REM by 'Franklin Wong'. REM: SEL...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1/*
 2REM
 3REM q03.sql
 4REM
 5REM Find the names of employees who are directly supervised
 6REM by 'Franklin Wong'.
 7REM
 8*/
 9
10SELECT DISTINCT E1.fname, E1.minit, E1.lname 
11FROM Employee E1, Employee E2
12WHERE E1.superssn = E2.ssn
13  AND E2.fname = 'Franklin'
14  AND E2.lname = 'Wong';