คำนวณจำนวนผู้ป่วยหญิงที่รักษาด้วยยารหัส lora2i ไม่จำเป็นต้องใช้ทุกตาราง
calculate the total number of female patients treated with drug code lora2iIt is not neccessary to use all the tables.
 lab:  subject_id [ text]  hadm_id [ text]  itemid [ text]  charttime [ text]  flag [ text]  value_unit [ text]  label [ text]  fluid [ text] 
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "LORA2I"