update tbl_CDR_Distributors set crmActive = 'Y', crmActiveDate = , crmActiveBy = , crmActiveReason = 'Reactivated' where ownerId = and fsl_tablecode = and cdr_recordId = and crmActive = 'N' select m.fspro_userId from tbl_FSPro_Members m where m.ownerId = and m.fsl_tablecode = and m.orgType = 'CDR' and m.orgId =