提示我“SQL: 缺少GROUP BY 子句或子句无效” 请问是为什么??
SELECT员工.*,COUNT(销售.编号)AS受理业务总次数;FROM员工LEFTJOIN销售ON员工.编号=销售.编号;GROUPBY销售.编号;ORDERBY受理...
SELECT 员工.*, COUNT(销售.编号) AS 受理业务总次数;
FROM 员工 LEFT JOIN 销售 ON 员工.编号=销售.编号;
GROUP BY 销售.编号;
ORDER BY 受理业务总次数 DESC 展开
FROM 员工 LEFT JOIN 销售 ON 员工.编号=销售.编号;
GROUP BY 销售.编号;
ORDER BY 受理业务总次数 DESC 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询