select from doctor_orders do where dopatient_id not in select cvppatient_id from clinical_vs_patient cvp and doCLINICAL_TRIAL_NO not in select ctmid from CLINICAL_TRIAL_MASTER ctmsql语句意义
该SQL语句的意义是从doctor_orders表中选择所有满足以下条件的行:
- 该行的patient_id不在clinical_vs_patient表的patient_id列中存在
- 该行的CLINICAL_TRIAL_NO不在CLINICAL_TRIAL_MASTER表的id列中存在
原文地址: http://www.cveoy.top/t/topic/i9Da 著作权归作者所有。请勿转载和采集!