问题:显示与他们相关联的医生数量最多的医院的 hospitalid、hname、htype。
表patient
:
patientid
pname
address
amount
ptype
hospital
桌子_
hospitalid
hname
htype
表doctor
:
doctorid
dname
specialization
hospitalid
status
表billing
:
billingid
patientid
doctorid
fees
billdate
到目前为止,这就是我所拥有的:
select * from hospital where hospitalid =
(select hospitalid from doctor group by hospitalid having count ( doctorid ) =
(select max ( doctoramt ) from
(select count (doctorid) as doctoramt from doctor group by hospitalid) as tbltemp));