我有一列值来自 0、1、2 见下文
0 = no, 1 = yes and 2 is waiting
我只想显示是否的计数并在哪里等待adminid=1468
IsVerified AdminId
0 1468
0 1475
1 1468
1 1468
1 1468
1 1468
1 1475
2 1468
2 1466
我想将其显示为adminid=1468
No Yes Waiting AdminId
1 4 1 1468
到目前为止,我已经使用
SELECT
COUNT(s.IsVerified) AS [Yes]
,COUNT(s.IsVerified) AS [No]
,COUNT(s.IsVerified) AS [Waiting]
,g.AdminId
FROM
tbl_Squad s, tbl_Match m, tbl_Group g
WHERE
m.GroupId = g.GroupId
--AND g.AdminId=@AdminId
AND g.AdminId=1468
GROUP BY
s.IsVerified
但它给出了三行,而我只想要一行我错了