Yurttas/PL/DBL/postgres/F/01/SPJ/q050.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 q050.sql REM REM Get project numbers for projects supplied entirely by REM supplier 'S01'. REM: SELECT c...")
1/*
2REM
3REM q050.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 NOT (SPJ.sn = 'S01'));