SQL11 获取所有员工当前的manager

https://www.nowcoder.com/practice/e50d92b8673a440ebdf3a517b5b37d62?tpId=82&tags=&title=&difficulty=0&judgeStatus=0&rp=1

SELECT
  de.emp_no,
  dm.emp_no AS manager_no 
FROM
  dept_emp de
LEFT JOIN dept_manager dm ON de.dept_no = dm.dept_no 
WHERE
  de.to_date = '9999-01-01'
AND dm.to_date = '9999-01-01'
AND de.emp_no <> dm.emp_no;
上一篇:【漏洞复现】CVE-2022–21661 WordPress核心框架WP_Query SQL注入漏洞原理分析与复现


下一篇:DM数据库运行中监控并渐进改善的几个指标