นับจำนวนคนไข้ที่มีมด/มดปากมดลูกตัวอื่นในปีที่ผ่านมา ไม่จำเป็นต้องใช้ตารางทั้งหมด
count the number of patients who had had a oth cerv fusion ant/ant during the last year.It is not neccessary to use all the tables.
 d_icd_diagnoses:  row_id [ number]  icd9_code [ text]  short_title [ text]  long_title [ text] 
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'oth cerv fusion ant/ant') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year'))