Tag: Leetcode SQL: 584. Find Customer Referee

  • Leetcode SQL: 584. Find Customer Referee

    584. Find Customer Referee Corrected SQL Code: SELECT name FROM Customer WHERE referee_id IS NULL OR referee_id != 2; Explanation: SELECT name: This specifies that we want to retrieve the name column from the Customers table, which holds the names of the customers. 这一行指定了我们要从 Customers 表中获取 name 列,name 表示客户的名字。 FROM…