select objectiveId from tbl_GTM_Campaigns where ownerId = and ownerType = and campaignId = delete from tbl_GTM_Campaigns where ownerId = and ownerType = and campaignId = and updateDate = delete from tbl_ORG_AttributeLinks where mstr_attrTypeId = and mstr_attrId = select campaignId as emailCampaignId from tbl_EML_Campaign where ownerId = and fsl_tablecode = and gtmCampaignId = and statusCd = 'PEN' update tbl_EML_Campaign set gtmCampaignId = null where ownerId = and fsl_tablecode = and gtmCampaignId =