COUNT DISTINCT 联合查询 的问题 ,(DISTINCT 需有多个字段)谢谢
发布网友
发布时间:2022-04-14 04:23
我来回答
共1个回答
热心网友
时间:2022-04-14 05:53
SELECT COUNT(Schele.S_userID,CRota.CR_systemID) AS deptNum
FROM Schele INNER JOIN
CRota ON CRota.CR_id = Schele.S_CRID
WHERE (Schele.S_date = '2010-12-6')
GROUP BY Schele.S_userID,CRota.CR_systemID