
/* Code Fragment 6.8 Bob was fired as Associated Director of the Computer Center. */

UPDATE INCUMBENTS
SET END_DATE = GETDATE()
WHERE SSN='111-22-3333'
AND PCN="999071"
AND END_DATE >= GETDATE()
AND START_DATE < GETDATE()

DELETE 
FROM INCUMBENTS
WHERE SSN='111-22-3333'
      AND PCN='999071'
      AND START_DATE > GETDATE()
