1607. Sellers With No Sales

https://leetcode.com/problems/sellers-with-no-sales

Description

Table: Customer

+---------------+---------+
| Column Name   | Type    |
+---------------+---------+
| customer\_id   | int     |
| customer\_name | varchar |
+---------------+---------+
customer\_id is the primary key for this table.
Each row of this table contains the information of each customer in the WebStore.

Table: Orders

+---------------+---------+
| Column Name   | Type    |
+---------------+---------+
| order\_id      | int     |
| sale\_date     | date    |
| order\_cost    | int     |
| customer\_id   | int     |
| seller\_id     | int     |
+---------------+---------+
order\_id is the primary key for this table.
Each row of this table contains all orders made in the webstore.
sale\_date is the date when the transaction was made between the customer (customer\_id) and the seller (seller\_id).

Table: Seller

Write an SQL query to report the names of all sellers who did not make any sales in 2020.

Return the result table ordered by seller_name in ascending order.

The query result format is in the following example.

ac

Last updated

Was this helpful?