select a.StaffCode,a.HospitalCode from MDS_DoctorRequest a,MDS_UserHospitalProduct bwhere a.StaffCode=b.StaffCode and a.HospitalCode=b.HospitalCode