select distinct districtId from tbl_CDR_ContactDetails d inner join tbl_FSPRO_Members m on m.ownerId = d.ownerId and m.fsl_tablecode = d.ownerType and m.fspro_userid = d.fspro_userid where m.ownerId = and m.fsl_tablecode = and m.orgId = and m.orgtype = 'CDRD'
new district