题解 | 57#使用含有关键字exists查找未分配具体部门的员工的所有信息。#
使用含有关键字exists查找未分配具体部门的员工的所有信息。
http://www.nowcoder.com/practice/c39cbfbd111a4d92b221acec1c7c1484
select * from employees e where not exists (select emp_no from dept_emp d where d.emp_no=e.emp_no)
思路:了解exists关键字,其实该题直接用外连接,判断是否为null更简单
sql题 文章被收录于专栏
牛客网里面的sql题,把答案和思路写下来