select sr.batchid, clientProcessEmail from tbl_PRD_SkuRequest sr inner join tbl_EAI_InboundBatches e on e.batchid = sr.batchid select fspro_userid from tbl_FSPro_Members where fsl_tableCode = and ownerid = and email = update tbl_PRD_SkuRequest set requestLoadUserId = where batchid = and nullif(requestLoadUserId,0) IS NULL