题目描述:


Write an SQL query to report the IDs of all the employees with missing information. The information of an employee is missing if:
The employee’s name is missing, or
The employee’s salary is missing.
Return the result table ordered by employee_id in ascending order.
The query result format is in the following example:

方法1:
主要思路:解题链接汇总

select employee_id
from (select employee_id from Employeesunion all select employee_id from Salaries
)tmp
group by employee_id
having count(*)=1
order by employee_id asc

1965 Employees With Missing Information相关推荐

  1. 【数据库系统】数据库系统学习与实践系列文章汇总目录(持续更新中)

    本文属于「数据库系统」系列文章的汇总目录,这一系列着重于「数据库系统知识的学习与实践」.由于文章内容随时可能发生更新变动,欢迎关注和收藏本文以作备忘.需要特别说明的是,为了透彻理解和全面掌握数据库系统 ...

  2. MySQL 8.0导入样例数据库employees

    1.下载 https://launchpad.net/test-db/employees-db-1/1.0.6 2.导入 [root@node1 app]# cd employees_db/ [roo ...

  3. 在SQL Server中使用SQL Coalesce函数

    This article explores the string manipulation using SQL Coalesce function in SQL Server. 本文探讨了在SQL S ...

  4. 使用Windows Defender Atp进行威胁狩猎

    What Is It? The very thought of "threat hunting" often suggests the dramatized scenes from ...

  5. 2011年11月CET4

    2011年12月大学英语四级真题 Part Ⅰ                                             Writing                          ...

  6. 四级真题之2011年6月份

    2011年6月大学英语四级真题 PartI                                                   Writing                      ...

  7. hibernate帮助文档

    Hibernate Annotations 参考文档 3.2.0 CR1 目录 前言 1. 翻译说明 2. 版权声明 前言 1. 创建一个注解项目 1.1. 系统需求 1.2. 系统配置 2. 实体B ...

  8. hibernate参考文档

    http://docs.jboss.org/hibernate/annotations/3.4/reference/zh_cn/html_single/#d0e224 Hibernate Annota ...

  9. RAID和mdadm

    软RAID需要内核支持md模块 mdadm可以将任何块设备做成RAID mdadm:模式化命令 创建模式 -C|--create -l|--level=:指定级别 -c|--chunk=:指定数据块大 ...

最新文章

  1. 初学 Delphi 嵌入汇编[9] - asm 可以代替 begin
  2. android 关于多任务下载问题
  3. Hive的基本操作-内置函数
  4. 腾讯网易禁止未成年人本周六玩游戏
  5. simpledateformat格式_为什么日期格式化时必须有使用y表示年,而不能用Y?
  6. 静态初始化--我的理解
  7. 使用socat实现对asok的远程访问
  8. 科大讯飞语音识别测试
  9. 电视盒子 android tv6,【亲测】S905L/S905L-B安卓TV6.0通刷固件
  10. LabVIEW 2021 工具包
  11. Python数据挖掘——文本分析
  12. [wordpress] Easy Custom Auto Excerpt Options 插件头图样式修改
  13. VR虚拟现实AR增强现实编程(1):VR和AR简介
  14. IP地址和MAC 地址
  15. Cleartext HTTP traffic to xxx not permitted解决
  16. AIOT人工智能物联网+项目实战
  17. css3立方体实现方式(position+transform)
  18. 高性能服务器性能影响因素
  19. 张韶涵《口袋的天空》小提琴谱片段
  20. 在新版win10上的Java安装教程(全网最全)

热门文章

  1. hdfs上传文件没有权限写入的问题解决put: Permission denied: user=root, access=WRITE
  2. centos8 yum安装提示All mirrors were tried
  3. 软件设计师-JAVA程序设计语言
  4. B站最受欢迎的Python教程,免费教学视频可以下载了
  5. 电脑五个神级代码(超实用)
  6. GEI步态能量图生成
  7. python3邮件_python3使用SMTP发送简单文本邮件
  8. java--for循环及相关案例
  9. Android动画框架(二)----属性动画
  10. Android 点击事件,如何在界面上或者某个控件上添加点击事件