ค่าใช้จ่ายรวมสูงสุดของโรงพยาบาลในการรวมการบริหารอิเล็กโทรไลต์ - แมกนีเซียมคือเท่าไร?ไม่จำเป็นต้องใช้ทุกโต๊ะ
what is the maximum total hospital cost to include electrolyte administration - magnesium?It is not neccessary to use all the tables.
 allergy:  allergyid [ number]  patientunitstayid [ number]  drugname [ text]  allergyname [ text]  allergytime [ time] 
SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'electrolyte administration - magnesium')) GROUP BY cost.patienthealthsystemstayid) AS t1