
/* Code Fragment 6.10 Bob was assigned the position of Director of the Computer center (assuming only current modifications). */

INSERT INCUMBENTS
SELECT '111-22-3333','999071', GETDATE(), '3000-01-01'
FROM INCUMBENTS
WHERE EXISTS (	SELECT *
		FROM INCUMBENTS AS I2
		WHERE I2.SSN = '111-22-3333'
		AND I2.END_DATE = '3000-01-01')

UPDATE INCUMBENTS
SET END_DATE = GETDATE()
WHERE SSN = '111-22-3333'
AND PCN <> '908739'
AND END_DATE = '3000-01-01'
