国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(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)遵守國家法律
遵义市| 江西省| 兴和县| 阳山县| 泰州市| 临西县| 特克斯县| 建阳市| 临泉县| 和顺县| 丹寨县| 巴林左旗| 南华县| 明水县| 宕昌县| 巴东县| 邢台县| 五常市| 齐河县| 安岳县| 宝坻区| 广饶县| 年辖:市辖区| 乳山市| 日喀则市| 密云县| 石阡县| 天水市| 山丹县| 团风县| 梅州市| 垫江县| 木兰县| 建昌县| 大庆市| 湖州市| 沈阳市| 宁德市| 石家庄市| 土默特右旗| 连平县|