SQL:需要帮助编写查询,该查询将显示此人是否有职位较低的人
我正在尝试编写一个查询,该查询将显示该人是否有职位较低的人
SELECT Count(job)
FROM emp
GROUP BY job
HAVING job < 'MANAGER';
是否有人愿意帮助我解决这个问题?
干杯
-Jay
我的问题的答案应该是:
Number of subORD
---------------------
6
I am trying write a query that will display if the person has anyone with a lower job position
SELECT Count(job)
FROM emp
GROUP BY job
HAVING job < 'MANAGER';
Would anyone be kind enough to help me with this?
Cheers
-Jay
Answer to my question should be:
Number of subORD
---------------------
6
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
怎么样:
How about:
怎么样
What about
假设您可以通过检查是否有其他员工将其 ID 作为“SUPER”来确定员工 A 是否有下属。
Assuming that you can determine if employee A has subordinates by checking if any other employees include his ID as their "SUPER".