mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-14 03:41:41 +08:00
add leetcode problem-cn part3
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<p>给定表 <code>customer</code> ,里面保存了所有客户信息和他们的推荐人。</p>
|
||||
|
||||
<pre>
|
||||
+------+------+-----------+
|
||||
| id | name | referee_id|
|
||||
+------+------+-----------+
|
||||
| 1 | Will | NULL |
|
||||
| 2 | Jane | NULL |
|
||||
| 3 | Alex | 2 |
|
||||
| 4 | Bill | NULL |
|
||||
| 5 | Zack | 1 |
|
||||
| 6 | Mark | 2 |
|
||||
+------+------+-----------+
|
||||
</pre>
|
||||
|
||||
<p>写一个查询语句,返回一个客户列表,列表中客户的推荐人的编号都 <strong>不是 </strong>2。</p>
|
||||
|
||||
<p>对于上面的示例数据,结果为:</p>
|
||||
|
||||
<pre>
|
||||
+------+
|
||||
| name |
|
||||
+------+
|
||||
| Will |
|
||||
| Jane |
|
||||
| Bill |
|
||||
| Zack |
|
||||
+------+
|
||||
</pre>
|
Reference in New Issue
Block a user