
/* Code Fragment 6.4 Fill the hole (in the restricted case) in the POSITIONS table for the position of Associate Director of the Computer Center. */

INSERT POSITIONS
SELECT '999071', NULL, GETDATE(), '3000-01-01'
FROM DUAL
WHERE NOT EXISTS (	SELECT *
			FROM POSITIONS AS P2
			WHERE P2.PCN = '999071'
			AND P2.END_DATE = '3000-01-01')
