delete from VCLib.T_EXTRA_TEMPLATE
using VCLib.T_FILE, VCLib.T_ENTITIES 
where VCLib.T_EXTRA_TEMPLATE.FileID=VCLib.T_FILE.FileID and VCLib.T_FILE.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_FILE_RIGHTS
using VCLib.T_FILE, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_FILE_RIGHTS.GenericReportFile=VCLib.T_FILE.FileID and VCLib.T_FILE.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_TEMPLATE
using VCLib.T_FILE, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_TEMPLATE.FileID=VCLib.T_FILE.FileID and VCLib.T_FILE.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_FILE_REPORT_MENU_ITEM
using VCLib.T_FILE, VCLib.T_ENTITIES 
where VCLib.T_FILE_REPORT_MENU_ITEM.GenericReportFile=VCLib.T_FILE.FileID and VCLib.T_FILE.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_XML_REPORT_FILE
using VCLib.T_FILE, VCLib.T_ENTITIES 
where VCLib.T_XML_REPORT_FILE.FileID=VCLib.T_FILE.FileID and VCLib.T_FILE.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_XML_REPORT_TEMPLATE
using VCLib.T_FILE, VCLib.T_ENTITIES 
where VCLib.T_XML_REPORT_TEMPLATE.FileID=VCLib.T_FILE.FileID and VCLib.T_FILE.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ReportFile
using VCLib.T_FILE, VCLib.T_ENTITIES 
where VCLib.T_ReportFile.FileID=VCLib.T_FILE.FileID and VCLib.T_FILE.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ADDING_DOCUMENT_FILE
using VCLib.T_FILE, VCLib.T_ENTITIES 
where VCLib.T_ADDING_DOCUMENT_FILE.FileID=VCLib.T_FILE.FileID and VCLib.T_FILE.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXPORT_TEMPLATE
using VCLib.T_FILE, VCLib.T_ENTITIES 
where VCLib.T_EXPORT_TEMPLATE.FileID=VCLib.T_FILE.FileID and VCLib.T_FILE.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXTRA_TEMPLATE
using VCLib.T_EXTRA_UI_COMMAND, VCLib.T_ENTITIES 
where VCLib.T_EXTRA_TEMPLATE.ExtraUiCommand=VCLib.T_EXTRA_UI_COMMAND.ExtraUiCommandID and (VCLib.T_EXTRA_UI_COMMAND.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_EXTRA_UI_COMMAND.CommandEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXTRA_UI_ACTION_PARAMS
using VCLib.T_EXTRA_UI_COMMAND, VCLib.T_ENTITIES 
where VCLib.T_EXTRA_UI_ACTION_PARAMS.ExtraUiCommand=VCLib.T_EXTRA_UI_COMMAND.ExtraUiCommandID and (VCLib.T_EXTRA_UI_COMMAND.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_EXTRA_UI_COMMAND.CommandEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXTRA_UI_COMMAND_ROLES
using VCLib.T_EXTRA_UI_COMMAND, VCLib.T_ENTITIES 
where VCLib.T_EXTRA_UI_COMMAND_ROLES.ExtraUiCommand=VCLib.T_EXTRA_UI_COMMAND.ExtraUiCommandID and (VCLib.T_EXTRA_UI_COMMAND.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_EXTRA_UI_COMMAND.CommandEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXTRA_TEMPLATE
using VCLib.T_EXTRA_UI_COMMAND, VCLib.T_ENTITIES 
where VCLib.T_EXTRA_TEMPLATE.ExtraUiCommand=VCLib.T_EXTRA_UI_COMMAND.ExtraUiCommandID and (VCLib.T_EXTRA_UI_COMMAND.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_EXTRA_UI_COMMAND.CommandEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXTRA_UI_ACTION_PARAMS
using VCLib.T_EXTRA_UI_COMMAND, VCLib.T_ENTITIES 
where VCLib.T_EXTRA_UI_ACTION_PARAMS.ExtraUiCommand=VCLib.T_EXTRA_UI_COMMAND.ExtraUiCommandID and (VCLib.T_EXTRA_UI_COMMAND.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_EXTRA_UI_COMMAND.CommandEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXTRA_UI_COMMAND_ROLES
using VCLib.T_EXTRA_UI_COMMAND, VCLib.T_ENTITIES 
where VCLib.T_EXTRA_UI_COMMAND_ROLES.ExtraUiCommand=VCLib.T_EXTRA_UI_COMMAND.ExtraUiCommandID and (VCLib.T_EXTRA_UI_COMMAND.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_EXTRA_UI_COMMAND.CommandEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DICTIONARY_ATTRIBUTE
using VCLib.T_DICTIONARY_UPDATE, VCLib.T_ENTITIES 
where VCLib.T_DICTIONARY_ATTRIBUTE.DictionaryUpdate=VCLib.T_DICTIONARY_UPDATE.DictionaryUpdateID and VCLib.T_DICTIONARY_UPDATE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DICTIONARY_DEPEND
using VCLib.T_DICTIONARY_UPDATE, VCLib.T_ENTITIES 
where VCLib.T_DICTIONARY_DEPEND.DependedDictionary=VCLib.T_DICTIONARY_UPDATE.DictionaryUpdateID and VCLib.T_DICTIONARY_UPDATE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DICTIONARY_DEPEND
using VCLib.T_DICTIONARY_UPDATE, VCLib.T_ENTITIES 
where VCLib.T_DICTIONARY_DEPEND.DependedDictionary=VCLib.T_DICTIONARY_UPDATE.DictionaryUpdateID and VCLib.T_DICTIONARY_UPDATE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DICTIONARY_USER
using VCLib.T_DICTIONARY_UPDATE, VCLib.T_ENTITIES 
where VCLib.T_DICTIONARY_USER.DictionaryUpdate=VCLib.T_DICTIONARY_UPDATE.DictionaryUpdateID and VCLib.T_DICTIONARY_UPDATE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ROLE_ATTRIBUTE_ACCESS
using VCLib.T_HIDDEN_ATTRIBUTE, VCLib.T_ENTITIES 
where VCLib.T_ROLE_ATTRIBUTE_ACCESS.HiddenAttribute=VCLib.T_HIDDEN_ATTRIBUTE.HiddenAttributeID and VCLib.T_HIDDEN_ATTRIBUTE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERATOR_LINK
using VCLib.T_GENERIC_REPORT, VCLib.T_ENTITIES 
where VCLib.T_GENERATOR_LINK.GenericReport=VCLib.T_GENERIC_REPORT.GenericReportID and VCLib.T_GENERIC_REPORT.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERATOR_PARAMS
using VCLib.T_GENERIC_REPORT, VCLib.T_ENTITIES 
where VCLib.T_GENERATOR_PARAMS.GenericReport=VCLib.T_GENERIC_REPORT.GenericReportID and VCLib.T_GENERIC_REPORT.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_FUNCTION
using VCLib.T_GENERIC_REPORT, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_FUNCTION.GenericReport=VCLib.T_GENERIC_REPORT.GenericReportID and VCLib.T_GENERIC_REPORT.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_MAIN_ITEM
using VCLib.T_GENERIC_REPORT, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_MAIN_ITEM.GenericReport=VCLib.T_GENERIC_REPORT.GenericReportID and VCLib.T_GENERIC_REPORT.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERATOR_LINK
using VCLib.T_GENERIC_REPORT_GENERATOR, VCLib.T_ENTITIES 
where VCLib.T_GENERATOR_LINK.GrCommonGenerator=VCLib.T_GENERIC_REPORT_GENERATOR.GenericReportGeneratorID and (VCLib.T_GENERIC_REPORT_GENERATOR.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_GENERIC_REPORT_GENERATOR.type_=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_GROUP
using VCLib.T_GENERIC_REPORT_GENERATOR, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_GROUP.GrCommonGenerator=VCLib.T_GENERIC_REPORT_GENERATOR.GenericReportGeneratorID and (VCLib.T_GENERIC_REPORT_GENERATOR.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_GENERIC_REPORT_GENERATOR.type_=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERATOR_LINK
using VCLib.T_GENERIC_REPORT_GENERATOR, VCLib.T_ENTITIES 
where VCLib.T_GENERATOR_LINK.GrCommonGenerator=VCLib.T_GENERIC_REPORT_GENERATOR.GenericReportGeneratorID and (VCLib.T_GENERIC_REPORT_GENERATOR.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_GENERIC_REPORT_GENERATOR.type_=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_GROUP
using VCLib.T_GENERIC_REPORT_GENERATOR, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_GROUP.GrCommonGenerator=VCLib.T_GENERIC_REPORT_GENERATOR.GenericReportGeneratorID and (VCLib.T_GENERIC_REPORT_GENERATOR.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_GENERIC_REPORT_GENERATOR.type_=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_GROUPBY
using VCLib.T_GENERIC_REPORT_GROUP, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_GROUPBY.GenericReportGroupID=VCLib.T_GENERIC_REPORT_GROUP.GenericReportGroupID and VCLib.T_GENERIC_REPORT_GROUP.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_STATIC_GROUPS
using VCLib.T_GENERIC_REPORT_GROUP, VCLib.T_ENTITIES 
where VCLib.T_STATIC_GROUPS.GenericReportGroupID=VCLib.T_GENERIC_REPORT_GROUP.GenericReportGroupID and VCLib.T_GENERIC_REPORT_GROUP.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_MAIN_ITEM
using VCLib.T_GENERIC_REPORT_MAIN, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_MAIN_ITEM.GenericReportMain=VCLib.T_GENERIC_REPORT_MAIN.GenericReportMainID and VCLib.T_GENERIC_REPORT_MAIN.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_RIGHTS
using VCLib.T_GENERIC_REPORT_MAIN, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_RIGHTS.GenericReportMain=VCLib.T_GENERIC_REPORT_MAIN.GenericReportMainID and VCLib.T_GENERIC_REPORT_MAIN.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_TEMPLATE
using VCLib.T_GENERIC_REPORT_MAIN, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_TEMPLATE.GenericReportMain=VCLib.T_GENERIC_REPORT_MAIN.GenericReportMainID and VCLib.T_GENERIC_REPORT_MAIN.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_ATTACHMENT
using VCLib.T_GENERIC_REPORT_MAIN, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_ATTACHMENT.GenericReportMain=VCLib.T_GENERIC_REPORT_MAIN.GenericReportMainID and VCLib.T_GENERIC_REPORT_MAIN.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_MENU_ITEM
using VCLib.T_GENERIC_REPORT_MAIN, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_MENU_ITEM.Report=VCLib.T_GENERIC_REPORT_MAIN.GenericReportMainID and VCLib.T_GENERIC_REPORT_MAIN.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_USER_COLUMNS
using VCLib.T_USER_CONTEXTS
where VCLib.T_USER_COLUMNS.UserContextID=VCLib.T_USER_CONTEXTS.UserContextID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_ATTACHMENT
using VCLib.T_EMAIL_ATTACHMENT, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_ATTACHMENT.EmailAttachmentID=VCLib.T_EMAIL_ATTACHMENT.EmailAttachmentID and VCLib.T_EMAIL_ATTACHMENT.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_REPORT_ATTACHMENT
using VCLib.T_EMAIL_ATTACHMENT, VCLib.T_ENTITIES 
where VCLib.T_REPORT_ATTACHMENT.EmailAttachmentID=VCLib.T_EMAIL_ATTACHMENT.EmailAttachmentID and VCLib.T_EMAIL_ATTACHMENT.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXPORT_DATA_MENU_ITEM
using VCLib.T_REPORT_MENU_ITEM, VCLib.T_ENTITIES 
where VCLib.T_EXPORT_DATA_MENU_ITEM.ReportMenuItemID=VCLib.T_REPORT_MENU_ITEM.ReportMenuItemID and VCLib.T_REPORT_MENU_ITEM.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_FILE_REPORT_MENU_ITEM
using VCLib.T_REPORT_MENU_ITEM, VCLib.T_ENTITIES 
where VCLib.T_FILE_REPORT_MENU_ITEM.ReportMenuItemID=VCLib.T_REPORT_MENU_ITEM.ReportMenuItemID and VCLib.T_REPORT_MENU_ITEM.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_MENU_ITEM
using VCLib.T_REPORT_MENU_ITEM, VCLib.T_ENTITIES 
where VCLib.T_GENERIC_REPORT_MENU_ITEM.ReportMenuItemID=VCLib.T_REPORT_MENU_ITEM.ReportMenuItemID and VCLib.T_REPORT_MENU_ITEM.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_SIMPLE_REPORT_MENU_ITEM
using VCLib.T_REPORT_MENU_ITEM, VCLib.T_ENTITIES 
where VCLib.T_SIMPLE_REPORT_MENU_ITEM.ReportMenuItemID=VCLib.T_REPORT_MENU_ITEM.ReportMenuItemID and VCLib.T_REPORT_MENU_ITEM.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_XML_REPORT_MENU_ITEM
using VCLib.T_REPORT_MENU_ITEM, VCLib.T_ENTITIES 
where VCLib.T_XML_REPORT_MENU_ITEM.ReportMenuItemID=VCLib.T_REPORT_MENU_ITEM.ReportMenuItemID and VCLib.T_REPORT_MENU_ITEM.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_UNITED_OBJECT_CHANGESET
using VCLib.T_UNITED_OBJECT, VCLib.T_ENTITIES 
where VCLib.T_UNITED_OBJECT_CHANGESET.UnitedObject=VCLib.T_UNITED_OBJECT.UnitedObjectID and VCLib.T_UNITED_OBJECT.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_Report
using VCLib.T_BaseReport
where VCLib.T_Report.ReportID=VCLib.T_BaseReport.ReportID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ReportRole
using VCLib.T_BaseReport, VCLib.T_ENTITIES 
where VCLib.T_ReportRole.ReportID=VCLib.T_BaseReport.ReportID and VCLib.T_BaseReport.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_RSReport
using VCLib.T_BaseReport, VCLib.T_ENTITIES 
where VCLib.T_RSReport.ReportID=VCLib.T_BaseReport.ReportID and VCLib.T_BaseReport.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NOTIFY_MESSAGE_GENERATION
using VCLib.T_NOTIFY_MESSAGE_TYPE, VCLib.T_ENTITIES 
where VCLib.T_NOTIFY_MESSAGE_GENERATION.NotifyMessageType=VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyMessageTypeID and (VCLib.T_NOTIFY_MESSAGE_TYPE.EntityType=VCLib.T_ENTITIES.EntityID or VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NOTIFY_MESSAGE_OBJECT
using VCLib.T_NOTIFY_MESSAGE_TYPE, VCLib.T_ENTITIES 
where VCLib.T_NOTIFY_MESSAGE_OBJECT.NotifyMessageType=VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyMessageTypeID and (VCLib.T_NOTIFY_MESSAGE_TYPE.EntityType=VCLib.T_ENTITIES.EntityID or VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NOTIFY_MESSAGE_USER_GROUP
using VCLib.T_NOTIFY_MESSAGE_TYPE, VCLib.T_ENTITIES 
where VCLib.T_NOTIFY_MESSAGE_USER_GROUP.NotifyMessageType=VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyMessageTypeID and (VCLib.T_NOTIFY_MESSAGE_TYPE.EntityType=VCLib.T_ENTITIES.EntityID or VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NOTIFY_MESSAGE_GENERATION
using VCLib.T_NOTIFY_MESSAGE_TYPE, VCLib.T_ENTITIES 
where VCLib.T_NOTIFY_MESSAGE_GENERATION.NotifyMessageType=VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyMessageTypeID and (VCLib.T_NOTIFY_MESSAGE_TYPE.EntityType=VCLib.T_ENTITIES.EntityID or VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NOTIFY_MESSAGE_OBJECT
using VCLib.T_NOTIFY_MESSAGE_TYPE, VCLib.T_ENTITIES 
where VCLib.T_NOTIFY_MESSAGE_OBJECT.NotifyMessageType=VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyMessageTypeID and (VCLib.T_NOTIFY_MESSAGE_TYPE.EntityType=VCLib.T_ENTITIES.EntityID or VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NOTIFY_MESSAGE_USER_GROUP
using VCLib.T_NOTIFY_MESSAGE_TYPE, VCLib.T_ENTITIES 
where VCLib.T_NOTIFY_MESSAGE_USER_GROUP.NotifyMessageType=VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyMessageTypeID and (VCLib.T_NOTIFY_MESSAGE_TYPE.EntityType=VCLib.T_ENTITIES.EntityID or VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyEntity=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_SIMPLE_REPORT_MENU_ITEM
using VCLib.T_Report
where VCLib.T_SIMPLE_REPORT_MENU_ITEM.Report=VCLib.T_Report.ReportID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_REPORT_ATTACHMENT
using VCLib.T_Report
where VCLib.T_REPORT_ATTACHMENT.Report=VCLib.T_Report.ReportID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ReportFileGroup
using VCLib.T_Report
where VCLib.T_ReportFileGroup.ReportID=VCLib.T_Report.ReportID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ReportKey
using VCLib.T_Report
where VCLib.T_ReportKey.ReportID=VCLib.T_Report.ReportID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DTO_ITEM
using VCLib.T_DTO_MODEL, VCLib.T_ENTITIES 
where VCLib.T_DTO_ITEM.ItemDtoModel=VCLib.T_DTO_MODEL.DtoModelID and VCLib.T_DTO_MODEL.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DTO_ITEM
using VCLib.T_DTO_MODEL, VCLib.T_ENTITIES 
where VCLib.T_DTO_ITEM.ItemDtoModel=VCLib.T_DTO_MODEL.DtoModelID and VCLib.T_DTO_MODEL.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DTO_MODEL_FILTER
using VCLib.T_DTO_MODEL, VCLib.T_ENTITIES 
where VCLib.T_DTO_MODEL_FILTER.DtoModel=VCLib.T_DTO_MODEL.DtoModelID and VCLib.T_DTO_MODEL.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DTO_MODEL_VIEW
using VCLib.T_DTO_MODEL, VCLib.T_ENTITIES 
where VCLib.T_DTO_MODEL_VIEW.DtoModel=VCLib.T_DTO_MODEL.DtoModelID and VCLib.T_DTO_MODEL.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ENTITIES_WEB_ALIAS_ACCESS
using VCLib.T_ENTITIES_WEB_ALIAS, VCLib.T_ENTITIES 
where VCLib.T_ENTITIES_WEB_ALIAS_ACCESS.EntitiesWebAlias=VCLib.T_ENTITIES_WEB_ALIAS.Alias and VCLib.T_ENTITIES_WEB_ALIAS.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_LEXEM_PARAMETER
using VCLib.T_TEMPLATE_OVERRIDE, VCLib.T_ENTITIES 
where VCLib.T_LEXEM_PARAMETER.TemplateOverride=VCLib.T_TEMPLATE_OVERRIDE.TemplateOverrideID and VCLib.T_TEMPLATE_OVERRIDE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_VALIDATION_CONDITION
using VCLib.T_DATAFORM_VALIDATION, VCLib.T_ENTITIES 
where VCLib.T_VALIDATION_CONDITION.DataformValidation=VCLib.T_DATAFORM_VALIDATION.Entities and VCLib.T_DATAFORM_VALIDATION.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ADD_DOCUMENT_LINK_MODULE
using VCLib.T_ADDING_DOCUMENT, VCLib.T_ENTITIES 
where VCLib.T_ADD_DOCUMENT_LINK_MODULE.AddingDocument=VCLib.T_ADDING_DOCUMENT.AddingDocumentID and VCLib.T_ADDING_DOCUMENT.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ADD_DOCUMENT_LINK_ROLES
using VCLib.T_ADDING_DOCUMENT, VCLib.T_ENTITIES 
where VCLib.T_ADD_DOCUMENT_LINK_ROLES.AddingDocument=VCLib.T_ADDING_DOCUMENT.AddingDocumentID and VCLib.T_ADDING_DOCUMENT.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ADDING_DOCUMENT_FILE
using VCLib.T_ADDING_DOCUMENT, VCLib.T_ENTITIES 
where VCLib.T_ADDING_DOCUMENT_FILE.AddDocument=VCLib.T_ADDING_DOCUMENT.AddingDocumentID and VCLib.T_ADDING_DOCUMENT.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NEWS_BOX_LINK_ADD_DOCUMENT
using VCLib.T_ADDING_DOCUMENT, VCLib.T_ENTITIES 
where VCLib.T_NEWS_BOX_LINK_ADD_DOCUMENT.AddingDocument=VCLib.T_ADDING_DOCUMENT.AddingDocumentID and VCLib.T_ADDING_DOCUMENT.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_PROCESS_ACCESS_ENTRY
using VCLib.T_BASE_ACCESS_ENTRY
where VCLib.T_PROCESS_ACCESS_ENTRY.EntryID=VCLib.T_BASE_ACCESS_ENTRY.EntryID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_BAE_ROLES
using VCLib.T_BASE_ACCESS_ENTRY, VCLib.T_ENTITIES 
where VCLib.T_BAE_ROLES.EntryID=VCLib.T_BASE_ACCESS_ENTRY.EntryID and VCLib.T_BASE_ACCESS_ENTRY.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ENTITY_ACCESS_ENTRY
using VCLib.T_BASE_ACCESS_ENTRY
where VCLib.T_ENTITY_ACCESS_ENTRY.EntryID=VCLib.T_BASE_ACCESS_ENTRY.EntryID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ENT_ATTR_ACCESS_ENTRY
using VCLib.T_BASE_ACCESS_ENTRY
where VCLib.T_ENT_ATTR_ACCESS_ENTRY.EntryID=VCLib.T_BASE_ACCESS_ENTRY.EntryID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ENUM_ACCESS_ENTRY
using VCLib.T_BASE_ACCESS_ENTRY, VCLib.T_ENTITIES 
where VCLib.T_ENUM_ACCESS_ENTRY.EntryID=VCLib.T_BASE_ACCESS_ENTRY.EntryID and VCLib.T_BASE_ACCESS_ENTRY.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_TEMPLATE_FIELD_VALUE
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_TEMPLATE_FIELD_VALUE.Users=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_SHORTCUTCOMMAND
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_SHORTCUTCOMMAND.UserId=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_USER_CONTEXTS
using VCLib.T_USERS
where VCLib.T_USER_CONTEXTS.UserID=VCLib.T_USERS.UserID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_USER_SEARCHES
using VCLib.T_USERS
where VCLib.T_USER_SEARCHES.UserID=VCLib.T_USERS.UserID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_USERS_ROLES
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_USERS_ROLES.UserID=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_USER_CONFIG
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_USER_CONFIG.UserID=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_USER_SESSIONS
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_USER_SESSIONS.UserID=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DELETED_OBJECT
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_DELETED_OBJECT.Users=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_XML_REPORT_RESULT
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_XML_REPORT_RESULT.Users=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_UNITED_OBJECT
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_UNITED_OBJECT.BaseUsers=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ADDING_DOCUMENT
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_ADDING_DOCUMENT.Creator=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NEWS_BOX
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_NEWS_BOX.Creator=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NEWS_BOX_LINK_USERS
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_NEWS_BOX_LINK_USERS.Users=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_CHANGESETS
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_CHANGESETS.UserId=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_JOB
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_JOB.JobUser=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DATAFORM_TEMPLATE
using VCLib.T_USERS, VCLib.T_ENTITIES 
where VCLib.T_DATAFORM_TEMPLATE.Users=VCLib.T_USERS.UserID and VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_IMPORTLOG
using VCLib.T_USERS
where VCLib.T_IMPORTLOG.UserID=VCLib.T_USERS.UserID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DICTIONARY_SCHEDULE
using VCLib.T_SCHEDULER_OPERATION, VCLib.T_ENTITIES 
where VCLib.T_DICTIONARY_SCHEDULE.OperationID=VCLib.T_SCHEDULER_OPERATION.OperationID and VCLib.T_SCHEDULER_OPERATION.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EMAIL_MESSAGE
using VCLib.T_SCHEDULER_OPERATION, VCLib.T_ENTITIES 
where VCLib.T_EMAIL_MESSAGE.OperationID=VCLib.T_SCHEDULER_OPERATION.OperationID and VCLib.T_SCHEDULER_OPERATION.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXPORT_OPERATION
using VCLib.T_SCHEDULER_OPERATION, VCLib.T_ENTITIES 
where VCLib.T_EXPORT_OPERATION.OperationID=VCLib.T_SCHEDULER_OPERATION.OperationID and VCLib.T_SCHEDULER_OPERATION.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NOTIFY_MESSAGE_GENERATION
using VCLib.T_SCHEDULER_OPERATION, VCLib.T_ENTITIES 
where VCLib.T_NOTIFY_MESSAGE_GENERATION.OperationID=VCLib.T_SCHEDULER_OPERATION.OperationID and VCLib.T_SCHEDULER_OPERATION.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_JOB_STEP
using VCLib.T_SCHEDULER_OPERATION, VCLib.T_ENTITIES 
where VCLib.T_JOB_STEP.Operation=VCLib.T_SCHEDULER_OPERATION.OperationID and VCLib.T_SCHEDULER_OPERATION.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_RUN_LEXEM_OPERATION
using VCLib.T_SCHEDULER_OPERATION, VCLib.T_ENTITIES 
where VCLib.T_RUN_LEXEM_OPERATION.OperationID=VCLib.T_SCHEDULER_OPERATION.OperationID and VCLib.T_SCHEDULER_OPERATION.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_BASE_FEATURE_SETTINGS
using VCLib.T_CLIENT_MODULE_FEATURE, VCLib.T_ENTITIES 
where VCLib.T_BASE_FEATURE_SETTINGS.ClientModuleFeature=VCLib.T_CLIENT_MODULE_FEATURE.ClientModuleFeatureID and VCLib.T_CLIENT_MODULE_FEATURE.EntityIndex=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DATA_ACCESS_ENTRY
using VCLib.T_DATA_ACCESS, VCLib.T_ENTITIES 
where VCLib.T_DATA_ACCESS_ENTRY.DataAccess=VCLib.T_DATA_ACCESS.DataAccessID and VCLib.T_DATA_ACCESS.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXPORT_ITEM
using VCLib.T_EXPORT_TABLE, VCLib.T_ENTITIES 
where VCLib.T_EXPORT_ITEM.ExportTable=VCLib.T_EXPORT_TABLE.ExportTableID and VCLib.T_EXPORT_TABLE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXPORT_COLUMN
using VCLib.T_EXPORT_TABLE, VCLib.T_ENTITIES 
where VCLib.T_EXPORT_COLUMN.ExportTable=VCLib.T_EXPORT_TABLE.ExportTableID and VCLib.T_EXPORT_TABLE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DATAFORM_EXTENSION_ADDATTRIBUTE
using VCLib.T_DATAFORM_EXTENSION, VCLib.T_ENTITIES 
where VCLib.T_DATAFORM_EXTENSION_ADDATTRIBUTE.DataformExtension=VCLib.T_DATAFORM_EXTENSION.DataformExtensionID and VCLib.T_DATAFORM_EXTENSION.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DATAFORM_EXTENSION_ROLE
using VCLib.T_DATAFORM_EXTENSION, VCLib.T_ENTITIES 
where VCLib.T_DATAFORM_EXTENSION_ROLE.DataformExtension=VCLib.T_DATAFORM_EXTENSION.DataformExtensionID and VCLib.T_DATAFORM_EXTENSION.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_OBJECT_MODIFICATION_ACTION_PARAM
using VCLib.T_OBJECT_MODIFICATION_ACTION, VCLib.T_ENTITIES 
where VCLib.T_OBJECT_MODIFICATION_ACTION_PARAM.ObjectModificationAction=VCLib.T_OBJECT_MODIFICATION_ACTION.ObjectModificationActionID and (VCLib.T_OBJECT_MODIFICATION_ACTION.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_OBJECT_MODIFICATION_ACTION.type_=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_IMPORTLOGITEM
using VCLib.T_IMPORTLOG
where VCLib.T_IMPORTLOGITEM.ImportLogID=VCLib.T_IMPORTLOG.ImportLogID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_OBJECT_MODIFICATION_ACTION_PARAM
using VCLib.T_OBJECT_MODIFICATION_ACTION, VCLib.T_ENTITIES 
where VCLib.T_OBJECT_MODIFICATION_ACTION_PARAM.ObjectModificationAction=VCLib.T_OBJECT_MODIFICATION_ACTION.ObjectModificationActionID and (VCLib.T_OBJECT_MODIFICATION_ACTION.Entities=VCLib.T_ENTITIES.EntityID or VCLib.T_OBJECT_MODIFICATION_ACTION.type_=VCLib.T_ENTITIES.EntityID) and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_TEMPLATE_FIELD_VALUE
using VCLib.T_TEMPLATE_FIELD, VCLib.T_ENTITIES 
where VCLib.T_TEMPLATE_FIELD_VALUE.TemplateField=VCLib.T_TEMPLATE_FIELD.TemplateFieldID and VCLib.T_TEMPLATE_FIELD.Entity=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ENTITIES_ATTRIBUTES
where EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_IMPORTLOG
where EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ENTITY_ACCESS_ENTRY
where EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ENT_ATTR_ACCESS_ENTRY
where EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_OBJECT_COPY_TEMPLATE
using VCLib.T_ENTITIES
where VCLib.T_OBJECT_COPY_TEMPLATE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_TEMPLATE_FIELD
using VCLib.T_ENTITIES
where VCLib.T_TEMPLATE_FIELD.Entity=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_OBJECT_MODIFICATION_ACTION
using VCLib.T_ENTITIES
where VCLib.T_OBJECT_MODIFICATION_ACTION.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXPORT_TABLE
using VCLib.T_ENTITIES
where VCLib.T_EXPORT_TABLE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DATAFORM_TEMPLATE
using VCLib.T_ENTITIES
where VCLib.T_DATAFORM_TEMPLATE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_CASCADE_DELETE_SETTING
using VCLib.T_ENTITIES
where VCLib.T_CASCADE_DELETE_SETTING.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_OBJECT_MODIFICATION_ACTION
using VCLib.T_ENTITIES
where VCLib.T_OBJECT_MODIFICATION_ACTION.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DATAFORM_EXTENSION
using VCLib.T_ENTITIES
where VCLib.T_DATAFORM_EXTENSION.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_CLIENT_MODULE_FORM
using VCLib.T_ENTITIES
where VCLib.T_CLIENT_MODULE_FORM.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_SCHEDULER_OPERATION
using VCLib.T_ENTITIES
where VCLib.T_SCHEDULER_OPERATION.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DATA_ACCESS
using VCLib.T_ENTITIES
where VCLib.T_DATA_ACCESS.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_CLIENT_MODULE_FEATURE
using VCLib.T_ENTITIES
where VCLib.T_CLIENT_MODULE_FEATURE.EntityIndex=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_BASE_FEATURE_SETTINGS
using VCLib.T_ENTITIES
where VCLib.T_BASE_FEATURE_SETTINGS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_USERS
using VCLib.T_ENTITIES
where VCLib.T_USERS.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_BASE_ACCESS_ENTRY
using VCLib.T_ENTITIES
where VCLib.T_BASE_ACCESS_ENTRY.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ADDING_DOCUMENT
using VCLib.T_ENTITIES
where VCLib.T_ADDING_DOCUMENT.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DATAFORM_VALIDATION
using VCLib.T_ENTITIES
where VCLib.T_DATAFORM_VALIDATION.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_TEMPLATE_OVERRIDE
using VCLib.T_ENTITIES
where VCLib.T_TEMPLATE_OVERRIDE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ENTITIES_WEB_ALIAS
using VCLib.T_ENTITIES
where VCLib.T_ENTITIES_WEB_ALIAS.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DTO_MODEL
using VCLib.T_ENTITIES
where VCLib.T_DTO_MODEL.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_Report
where EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NOTIFY_MESSAGE_TYPE
using VCLib.T_ENTITIES
where VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyEntity=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NOTIFY_MESSAGE_OBJECT
using VCLib.T_ENTITIES
where VCLib.T_NOTIFY_MESSAGE_OBJECT.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_LEXEM_PARAMETER
using VCLib.T_ENTITIES
where VCLib.T_LEXEM_PARAMETER.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_NOTIFY_MESSAGE_TYPE
using VCLib.T_ENTITIES
where VCLib.T_NOTIFY_MESSAGE_TYPE.NotifyEntity=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_UNITED_OBJECT_CHANGESET
using VCLib.T_ENTITIES
where VCLib.T_UNITED_OBJECT_CHANGESET.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_BaseReport
using VCLib.T_ENTITIES
where VCLib.T_BaseReport.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_REPORT_MENU_ITEM
using VCLib.T_ENTITIES
where VCLib.T_REPORT_MENU_ITEM.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DELETED_OBJECT
using VCLib.T_ENTITIES
where VCLib.T_DELETED_OBJECT.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DELETED_OBJECT_INFO
using VCLib.T_ENTITIES
where VCLib.T_DELETED_OBJECT_INFO.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_UNITED_OBJECT
using VCLib.T_ENTITIES
where VCLib.T_UNITED_OBJECT.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_USER_CONTEXTS
where EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_USER_SEARCHES
where EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EMAIL_ATTACHMENT
using VCLib.T_ENTITIES
where VCLib.T_EMAIL_ATTACHMENT.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_MAIN
using VCLib.T_ENTITIES
where VCLib.T_GENERIC_REPORT_MAIN.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_GENERATOR
using VCLib.T_ENTITIES
where VCLib.T_GENERIC_REPORT_GENERATOR.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_PROCESS_ACCESS_ENTRY
where EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_GROUP
using VCLib.T_ENTITIES
where VCLib.T_GENERIC_REPORT_GROUP.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT_GENERATOR
using VCLib.T_ENTITIES
where VCLib.T_GENERIC_REPORT_GENERATOR.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_GENERIC_REPORT
using VCLib.T_ENTITIES
where VCLib.T_GENERIC_REPORT.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXTRA_UI_COMMAND
using VCLib.T_ENTITIES
where VCLib.T_EXTRA_UI_COMMAND.CommandEntity=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_FILE
using VCLib.T_ENTITIES
where VCLib.T_FILE.type_=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_DICTIONARY_UPDATE
using VCLib.T_ENTITIES
where VCLib.T_DICTIONARY_UPDATE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_EXTRA_UI_COMMAND
using VCLib.T_ENTITIES
where VCLib.T_EXTRA_UI_COMMAND.CommandEntity=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_HIDDEN_ATTRIBUTE
using VCLib.T_ENTITIES
where VCLib.T_HIDDEN_ATTRIBUTE.Entities=VCLib.T_ENTITIES.EntityID and EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
 
delete from VCLib.T_ENTITIES
where EntityID = (select EntityID from VCLib.T_ENTITIES e where e.EntName = 'SMO_COEF_MONTH_VALUES_EXCEPTION');
