# 181. 超过经理收入的员工

![在这里插入图片描述](https://img-blog.csdnimg.cn/20190429160126587.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2phY2tpZV9vMm8y,size_16,color_FFFFFF,t_70)

```sql
# Write your MySQL query statement below
select a.Name as 'Employee'
from Employee as a,Employee as b
where a.ManagerId=b.Id
        and a.Salary>b.Salary;

```

1.employee的表出现了两次，分别命名为a，b，因为只有一个表要使用两次，为了避免二义性才用不同的名字\
2.注意结果那里显示的列名是：Employee而原表是 Name


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://qiangrens-organization.gitbook.io/qkd90/shu-ju-ku-he-zhong-jian-jian/sql-yu-ju/181.-chao-guo-jing-li-shou-ru-de-yuan-gong.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
