INSERT INTO [IES].[T_POSTPONED_DELETE_ENTITY]
SELECT NEWID(), Entityes.Name
FROM    
(VALUES 
('IES.SCHET'),
('IES.SCHET_FILE'),
('IES.SCHET_SLUCH'),
('IES.SCHET_SLUCH_ACCOMPLISHED'),
('IES.SCHET_SLUCH_SANK'),
('IES.SCHET_USL'),
('IES.SCHET_SLUCH_SANK_HISTORY'),
('IES.SCHET_ZAP'),
('IES.SCHET_ACT'),
('IES.SCHET_ACT_ITEM'),
('IES.ACT_ITEM_ERROR'),
('IES.SCHET_SLUCH_ONK'),
('IES.SCHET_SLUCH_ONK_DIAG'),
('IES.SCHET_SLUCH_ONK_PROT'),
('IES.SCHET_USL_NAPR'),
('IES.SCHET_USL_ONK'),
('IES.SCHET_SLUCH_NAZ'),
('IES.SCHET_SLUCH_LS'),
('IES.SCHET_SLUCH_DS'),
('IES.SCHET_SLUCH_CONS'),
('IES.KSG'),
('IES.KSLP'),
('IES.KSG_CRIT'),
('IES.KSG_CALC'),
('IES.MR_USL_N'),
('IES.SCHET_SLUCH_LEK_PR'),
('IES.SCHET_SLUCH_SANK_EXP'),
('IES.SCHET_USL_MED_DEV'),
('IES.SCHET_USL_ONK_LEK_PR'),
('IES.SCHET_USL_ONK_LEK_PR_DATE'),
('IES.TARIFF_KOEF_DATA'),
('IES.SCHET_SLUCH_DEST'),
('IES.SCHET_SLUCH_DEST_PK'),
('IES.SCHET_SLUCH_DEST_PROFILE'),
('IES.SCHET_SLUCH_DEST_SP'),
('IES.SCHET_SLUCH_DEST_SUR')
) AS Entityes (Name)
WHERE NOT EXISTS (SELECT 1
                     FROM   [IES].[T_POSTPONED_DELETE_ENTITY] AS PDE
                     WHERE  PDE.Name = Entityes.Name);