
// CF 7-10

// Incumbents table

CREATE TABLE Incumbents (
                        SSN             integer,
                        PCN             integer,
                        StartDate       date,
                        EndDate         date,
                        PRIMARY KEY (SSN, PCN)
                        );

// Actual update, note that insert is missing...

UPDATE Incumbents
   SET EndDate = DATE '12/05/1997'
 WHERE SSN = 111223333
   AND PCN <> 908739
   AND EndDate = DATE '01/01/3000'

