从下表中,编写查询以获取已完成手术但从未开过任何处方的独特医师的专业直方图。
病人治疗台
Patient Id | Event Name | Physician ID
1 Radiation 1000
2 Chemotherapy 2000
1 Biopsy 1000
3 Immunosuppressants 2000
4 BTKI 3000
5 Radiation 4000
4 Chemotherapy 2000
1 Biopsy 5000
6 Chemotherapy 6000
事件类别表
Event Name | Category
Chemotherapy Procedure
Radiation Procedure
Immunosuppressants Prescription
BTKI Prescription
Biopsy Test
医师专业表
Physician Id | specialty
1000 Radiologist
2000 Oncologist
3000 Hematologist
4000 Oncologist
5000 Pathologist
6000 Oncologist
样本输出:
specialty speciality_count
Oncologist 2
Radiologist 1
我使用的数据库是 Mysql