Deleting Allergens

delete from tbl_PRD_AllergenInfo where ownerType = and ownerId = and linkType = 'SKU' and linkId =

Updating Allergens:

insert into tbl_PRD_AllergenInfo ( ownerId, ownerType, linkType, linkId, allergenId, levelOfContainment) select DISTINCT #attributes.OwnerId#, '#attributes.OwnerType#', linkType, #attributes.SKUId#, allergenId, levelOfContainment from tbl_PRD_AllergenInfo with (nolock) where ownerType = and ownerId = and linkType = 'SKU' and linkId =