mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 06:51:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
| commission_rate | int |
|
||||
| hire_date | date |
|
||||
+-----------------+---------+
|
||||
sales_id is the primary key column for this table.
|
||||
sales_id is the primary key (column with unique values) for this table.
|
||||
Each row of this table indicates the name and the ID of a salesperson alongside their salary, commission rate, and hire date.
|
||||
</pre>
|
||||
|
||||
@@ -26,7 +26,7 @@ Each row of this table indicates the name and the ID of a salesperson alongside
|
||||
| name | varchar |
|
||||
| city | varchar |
|
||||
+-------------+---------+
|
||||
com_id is the primary key column for this table.
|
||||
com_id is the primary key (column with unique values) for this table.
|
||||
Each row of this table indicates the name and the ID of a company and the city in which the company is located.
|
||||
</pre>
|
||||
|
||||
@@ -44,22 +44,22 @@ Each row of this table indicates the name and the ID of a company and the city i
|
||||
| sales_id | int |
|
||||
| amount | int |
|
||||
+-------------+------+
|
||||
order_id is the primary key column for this table.
|
||||
com_id is a foreign key to com_id from the Company table.
|
||||
sales_id is a foreign key to com_id from the SalesPerson table.
|
||||
order_id is the primary key (column with unique values) for this table.
|
||||
com_id is a foreign key (reference column) to com_id from the Company table.
|
||||
sales_id is a foreign key (reference column) to sales_id from the SalesPerson table.
|
||||
Each row of this table contains information about one order. This includes the ID of the company, the ID of the salesperson, the date of the order, and the amount paid.
|
||||
</pre>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p>Write an SQL query to report the names of all the salespersons who did not have any orders related to the company with the name <strong>"RED"</strong>.</p>
|
||||
<p>Write a solution to find the names of all the salespersons who did not have any orders related to the company with the name <strong>"RED"</strong>.</p>
|
||||
|
||||
<p>Return the result table in <strong>any order</strong>.</p>
|
||||
|
||||
<p>The query result format is in the following example.</p>
|
||||
<p>The result format is in the following example.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong>
|
||||
|
Reference in New Issue
Block a user