Yurttas/PL/DBL/postgres/F/01/SPJ/q011.sql
Jump to navigation
Jump to search
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');