# #584 Find Customer Referee

#### [https://leetcode.com/problems/find-customer-referee/](https://leetcode.com/problems/find-customer-referee/)

{% tabs %}
{% tab title="MS SQL Server" %}
```sql
SELECT name 
FROM Customer
WHERE referee_id <> 2 or referee_id IS NULL
```
{% endtab %}
{% endtabs %}
