Yurttas/PL/DBL/postgres/F/01/SPJ/q051.sql
Revision as of 00:54, 5 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">ββREM REM q051.sql REM REM Get project numbers for projects supplied entirely by REM supplier 'S01'. REM: SELECT c...")
1/*
2REM
3REM q051.sql
4REM
5REM Get project numbers for projects supplied entirely by
6REM supplier 'S01'.
7REM
8*/
9
10SELECT current_schema();
11SET search_path to "spj";
12
13SELECT J.jn
14FROM Projects J
15WHERE NOT EXISTS (SELECT *
16 FROM Shipments SPJ
17 WHERE SPJ.jn = J.jn
18 AND SPJ.sn != 'S01');