最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

[database_leetcode]181. Employees Earning More Than Their Manage

2021-03-05 08:11 作者:您是打尖兒還是住店呢  | 我要投稿

The?Employee?table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id.

employee

Given the?Employee?table, write a SQL query that finds out employees who earn more than their managers. For the above table, Joe is the only employee who earns more than his manager.

| Employee |?

| Joe ? ? ?|


做個(gè)自聯(lián)接即可;

問題屬于簡(jiǎn)單類

select a.name Employee

from employee a join employee b?

on a.managerid=b.id

where a.salary>b.salary




[database_leetcode]181. Employees Earning More Than Their Manage的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國家法律
阿克陶县| 石城县| 伊金霍洛旗| 明光市| 怀仁县| 佛山市| 合阳县| 广南县| 平山县| 永嘉县| 宜兴市| 板桥市| 崇义县| 西乌珠穆沁旗| 永平县| 招远市| 江西省| 惠安县| 抚顺县| 叙永县| 彩票| 安庆市| 长海县| 沂源县| 金寨县| 奉贤区| 佛学| 濉溪县| 石台县| 明星| 三门县| 马边| 彰武县| 新干县| 巨鹿县| 庆城县| 阜康市| 肥乡县| 临泽县| 江华| 西充县|