CREATE TRIGGER APPLICATION_DELETE 
ON APPLICATION
INSTEAD OF DELETE
AS
 BEGIN
  DELETE FROM APP_CACHE_VIEW WHERE APP_UID = 'OLD.APP_UID';
END