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