delete from IES.T_DICTIONARY_LIST_ROLES
using
IES.T_DICTIONARY_LIST ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and IES.T_DICTIONARY_LIST_ROLES.DictionaryList=IES.T_DICTIONARY_LIST.DictionaryListID and IES.T_DICTIONARY_LIST.Entities=VCLib.T_ENTITIES.EntityID;

delete from IES.T_DICTIONARY_LIST
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and IES.T_DICTIONARY_LIST.Entities=VCLib.T_ENTITIES.EntityID;


delete from IES.T_HIDDEN_FILTER_ROLES
using
IES.T_HIDDEN_FILTER ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and IES.T_HIDDEN_FILTER_ROLES.HiddenFilter=IES.T_HIDDEN_FILTER.HiddenFilterID and IES.T_HIDDEN_FILTER.Entities=VCLib.T_ENTITIES.EntityID;

delete from IES.T_HIDDEN_FILTER
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and IES.T_HIDDEN_FILTER.Entities=VCLib.T_ENTITIES.EntityID;


delete from IES.T_LISTS_ENTITY_USERS_GROUP
using
IES.T_LISTS_ENTITY ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and IES.T_LISTS_ENTITY_USERS_GROUP.ListsEntity=IES.T_LISTS_ENTITY.ListsEntityID and IES.T_LISTS_ENTITY.Entities=VCLib.T_ENTITIES.EntityID;

delete from IES.T_LISTS_ENTITY
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and IES.T_LISTS_ENTITY.Entities=VCLib.T_ENTITIES.EntityID;




delete from VCLib.T_USER_SEARCHES
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_USER_SEARCHES.EntityID=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_DATAFORM_EXTENSION_ADDATTRIBUTE
using
VCLib.T_DATAFORM_EXTENSION ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DATAFORM_EXTENSION_ADDATTRIBUTE.DataformExtension=VCLib.T_DATAFORM_EXTENSION.DataformExtensionID and VCLib.T_DATAFORM_EXTENSION.Entities=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_DATAFORM_EXTENSION_ROLE
using
VCLib.T_DATAFORM_EXTENSION ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DATAFORM_EXTENSION_ROLE.DataformExtension=VCLib.T_DATAFORM_EXTENSION.DataformExtensionID and VCLib.T_DATAFORM_EXTENSION.Entities=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_DATAFORM_EXTENSION
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DATAFORM_EXTENSION.Entities=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_ENT_ATTR_ACCESS_ENTRY
using
VCLib.T_BASE_ACCESS_ENTRY ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_ENT_ATTR_ACCESS_ENTRY.EntryID=VCLib.T_BASE_ACCESS_ENTRY.EntryID and VCLib.T_BASE_ACCESS_ENTRY.type_=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_ENT_ATTR_ACCESS_ENTRY
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_ENT_ATTR_ACCESS_ENTRY.EntityID=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_ENTITY_ACCESS_ENTRY
using
VCLib.T_BASE_ACCESS_ENTRY ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_ENTITY_ACCESS_ENTRY.EntryID=VCLib.T_BASE_ACCESS_ENTRY.EntryID and VCLib.T_BASE_ACCESS_ENTRY.type_=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_BASE_ACCESS_ENTRY
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_BASE_ACCESS_ENTRY.type_=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_DATAFORM_TEMPLATE
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DATAFORM_TEMPLATE.Entities=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_DTO_MODEL_VIEW
using
VCLib.T_DTO_MODEL ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DTO_MODEL_VIEW.DtoModel=VCLib.T_DTO_MODEL.DtoModelID and VCLib.T_DTO_MODEL.Entities=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_DTO_ITEM
using
VCLib.T_DTO_MODEL ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DTO_ITEM.ItemDtoModel=VCLib.T_DTO_MODEL.DtoModelID and VCLib.T_DTO_MODEL.Entities=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_DTO_ITEM
using
VCLib.T_DTO_MODEL ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DTO_ITEM.ItemDtoModel=VCLib.T_DTO_MODEL.DtoModelID and VCLib.T_DTO_MODEL.Entities=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_DTO_MODEL_FILTER
using
VCLib.T_DTO_MODEL ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DTO_MODEL_FILTER.DtoModel=VCLib.T_DTO_MODEL.DtoModelID and VCLib.T_DTO_MODEL.Entities=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_DTO_MODEL
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DTO_MODEL.Entities=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_ROLE_ATTRIBUTE_ACCESS
using
VCLib.T_HIDDEN_ATTRIBUTE ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_ROLE_ATTRIBUTE_ACCESS.HiddenAttribute=VCLib.T_HIDDEN_ATTRIBUTE.HiddenAttributeID and VCLib.T_HIDDEN_ATTRIBUTE.Entities=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_HIDDEN_ATTRIBUTE
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_HIDDEN_ATTRIBUTE.Entities=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_DATA_ACCESS_ENTRY
using
VCLib.T_DATA_ACCESS ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DATA_ACCESS_ENTRY.DataAccess=VCLib.T_DATA_ACCESS.DataAccessID and VCLib.T_DATA_ACCESS.Entities=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_DATA_ACCESS
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DATA_ACCESS.Entities=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_ENTITIES_WEB_ALIAS_ACCESS
using
VCLib.T_ENTITIES_WEB_ALIAS ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_ENTITIES_WEB_ALIAS_ACCESS.EntitiesWebAlias=VCLib.T_ENTITIES_WEB_ALIAS.EntitiesWebAliasID and VCLib.T_ENTITIES_WEB_ALIAS.Entities=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_ENTITIES_WEB_ALIAS
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_ENTITIES_WEB_ALIAS.Entities=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_VALIDATION_CONDITION
using
VCLib.T_DATAFORM_VALIDATION ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_VALIDATION_CONDITION.DataformValidation=VCLib.T_DATAFORM_VALIDATION.Entities and VCLib.T_DATAFORM_VALIDATION.Entities=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_DATAFORM_VALIDATION
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_DATAFORM_VALIDATION.Entities=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_TEMPLATE_FIELD_VALUE
using
VCLib.T_TEMPLATE_FIELD ,
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_TEMPLATE_FIELD_VALUE.TemplateField=VCLib.T_TEMPLATE_FIELD.TemplateFieldID and VCLib.T_TEMPLATE_FIELD.Entity=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_TEMPLATE_FIELD
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_TEMPLATE_FIELD.Entity=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_OBJECT_COPY_TEMPLATE
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_OBJECT_COPY_TEMPLATE.Entities=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_CASCADE_DELETE_SETTING
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_CASCADE_DELETE_SETTING.Entities=VCLib.T_ENTITIES.EntityID;


delete from VCLib.T_ENTITIES_ATTRIBUTES
using
VCLib.T_ENTITIES  where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY')) and VCLib.T_ENTITIES_ATTRIBUTES.EntityID=VCLib.T_ENTITIES.EntityID;

delete from VCLib.T_ENTITIES
 where (EntName in ('FACT_RECALC_INFO', 'SCHET_ITEM_FAKT_HISTORY'));
