我创建了一个包含两个表(基本信息)(培训)与内连接相结合的查询,并提供如下数据:
District Department Person Trainings
Chitral Health ABC Training 1
Chitral Health ABC Training 2
Chitral Health DEF Training 1
Chitral Health DEF Training 3
Chitral Health DEF Training 1
Chitral Health GHI Training 4
在报告的区域标题中,我想要统计独特的人数并计算他收到的培训数量。
例如:我想要一个计算Persons availed Trainings =3 and No of Trainings = 4
注意:很少有人和很少的培训是重复的
请指导我,如何做对。