我有一个名为“出席”的表,如下所示:
Sno SecurityGroup SecurityName Designation AttendanceStatus
----------------------------------------------------------------
1 JJ Ram officer present
2 JJ Raja Guards Present
3 JJ Rani LadyGuards Present
4 JJ Ramu officer present
我需要输出作为每个指定中存在的证券数量的计数,如下所示:
SecutityGroup Officer Guards LadyGuards
-----------------------------------------
JJ 2 1 1
有人可以帮我写一个查询来获得这个输出吗?