Yurttas/PL/DBL/postgres/F/01/SPJ/q011.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 q011.sql REM REM Get project names for projects supplied by suppliers REM 'S01' or 'S03'. REM: SELECT cu...")
1/*
2REM
3REM q011.sql
4REM
5REM Get project names for projects supplied by suppliers
6REM 'S01' or 'S03'.
7REM
8*/
9
10SELECT current_schema();
11SET search_path to "spj";
12
13SELECT DISTINCT jname
14FROM Projects, Shipments
15WHERE Shipments.jn = Projects.jn
16 AND (sn='S01' OR sn='S03');