select ownerid as mfrId, cdr_recordid
from tbl_cdr_distributors cdr
where fsl_dstid =
and ownerid in ()
and ownerid in ()
and fsl_tablecode = 'mfr'
and crmActive = 'y'
and fsl_dstid > 0
select ownerid as mfrId, operatorid
from tbl_opr_clientoperators opr with (nolock)
where fsl_choid =
and ownerid in ()
and ownerid in ()
and fsltablecode = 'mfr'
and crmActive = 'y'
and fsl_choid > 0
and exists (
select *
from tbl_opr_productStatus with (nolock)
where ownerid = opr.ownerid
and ownertype = opr.fsltablecode
and operatorid = opr.operatorid
and confirmedVolumeDate is not null
)