题解 | #查找当前薪水详情以及部门编号dept_no#

查找当前薪水详情以及部门编号dept_no

https://www.nowcoder.com/practice/c63c5b54d86e4c6d880e4834bfd70c3b

select s.emp_no,s.salary,s.from_date,s.to_date,d.dept_no from salaries s left join dept_manager d on s.to_date=d.to_date group by s.emp_no order by s.emp_no asc;

报错
ERROR 1055 (42000): Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'school.s.salary' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
#数据库#
全部评论
set sql_mode=
点赞 回复 分享
发布于 2022-09-19 15:51 上海

相关推荐

牛客618272644号:佬携程工作怎么样,强度大吗
点赞 评论 收藏
分享
1 收藏 评论
分享
牛客网
牛客企业服务