Yurttas/PL/DBL/postgres/F/01/Company-A/q06.sql

From ZCubes Wiki
Revision as of 00:41, 5 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">→‎REM REM q06.sql REM REM Retrieve the names of employees who do not work REM on any project. REM: SELECT current_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1/*
 2REM
 3REM q06.sql
 4REM
 5REM Retrieve the names of employees who do not work
 6REM on any project.
 7REM
 8*/
 9
10SELECT current_schema();
11SET search_path to "companya";
12
13SELECT fname, minit, lname
14FROM Employee
15WHERE ssn NOT IN (SELECT essn
16                  FROM WorksOn
17                  WHERE essn = ssn);