Yurttas/PL/DBL/postgres/F/01/SPJ/q06.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 q06.sql REM REM Get the total quantity of part 'P01' supplied by REM supplier 'S01'. REM: SELECT current...")
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)
 1/*
 2REM
 3REM q06.sql
 4REM
 5REM Get the total quantity of part 'P01' supplied by
 6REM supplier 'S01'.
 7REM
 8*/
 9
10SELECT current_schema();
11SET search_path to "spj";
12
13SELECT SUM(quantity)
14FROM Shipments
15WHERE pn = 'P01'
16  AND sn = 'S01';