1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-12 02:41:42 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

存量题库数据更新

This commit is contained in:
2023-12-09 18:42:21 +08:00
parent a788808cd7
commit c198538f10
10843 changed files with 288489 additions and 248355 deletions

View File

@@ -1,4 +1,4 @@
<p>Table: <code>Users</code></p>
<p>表:&nbsp;<code>Users</code></p>
<pre>
+----------------+---------+
@@ -8,13 +8,13 @@
| join_date | date |
| favorite_brand | varchar |
+----------------+---------+
此表主键是 user_id。
user_id 是此表主键(具有唯一值的列)
表中描述了购物网站的用户信息,用户可以在此网站上进行商品买卖。
</pre>
<p>&nbsp;</p>
<p>Table: <code>Orders</code></p>
<p>表:&nbsp;<code>Orders</code></p>
<pre>
+---------------+---------+
@@ -26,13 +26,14 @@
| buyer_id | int |
| seller_id | int |
+---------------+---------+
此表主键是 order_id。
外键是 item_id buyer_idseller_id)。
order_id 是此表主键(具有唯一值的列)
item_id 是 Items 表的外键reference 列)。
buyer_idseller_id是 User 表的外键。
</pre>
<p>&nbsp;</p>
<p>Table: <code>Items</code></p>
<p>表:<code>Items</code></p>
<pre>
+---------------+---------+
@@ -41,12 +42,12 @@
| item_id | int |
| item_brand | varchar |
+---------------+---------+
此表主键是 item_id。
item_id 是此表的主键(具有唯一值的列)
</pre>
<p>&nbsp;</p>
<p>请写出一条SQL语句以查询每个用户的注册日期和在 <strong><code>2019</code> </strong>年作为买家的订单总数。</p>
<p>编写解决方案找出每个用户的注册日期和在 <strong><code>2019</code> </strong>年作为买家的订单总数。</p>
<p><strong>任意顺序</strong> 返回结果表。</p>