mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-25 23:08:57 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p><code>Views</code> 表:</p>\n\n<pre>\n+---------------+---------+\n| Column Name | Type |\n+---------------+---------+\n| article_id | int |\n| author_id | int |\n| viewer_id | int |\n| view_date | date |\n+---------------+---------+\n此表无主键,因此可能会存在重复行。\n此表的每一行都表示某人在某天浏览了某位作者的某篇文章。\n请注意,同一人的 author_id 和 viewer_id 是相同的。\n</pre>\n\n<p> </p>\n\n<p>请编写一条 SQL 查询以找出所有浏览过自己文章的作者,结果按照 id 升序排列。</p>\n\n<p>查询结果的格式如下所示:</p>\n\n<pre>\nViews 表:\n+------------+-----------+-----------+------------+\n| article_id | author_id | viewer_id | view_date |\n+------------+-----------+-----------+------------+\n| 1 | 3 | 5 | 2019-08-01 |\n| 1 | 3 | 6 | 2019-08-02 |\n| 2 | 7 | 7 | 2019-08-01 |\n| 2 | 7 | 6 | 2019-08-02 |\n| 4 | 7 | 1 | 2019-07-22 |\n| 3 | 4 | 4 | 2019-07-21 |\n| 3 | 4 | 4 | 2019-07-21 |\n+------------+-----------+-----------+------------+\n\n结果表:\n+------+\n| id |\n+------+\n| 4 |\n| 7 |\n+------+\n</pre>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 15,
|
||||
"likes": 21,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -47,7 +47,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"10.2K\", \"totalSubmission\": \"14.3K\", \"totalAcceptedRaw\": 10195, \"totalSubmissionRaw\": 14319, \"acRate\": \"71.2%\"}",
|
||||
"stats": "{\"totalAccepted\": \"13.6K\", \"totalSubmission\": \"19.1K\", \"totalAcceptedRaw\": 13604, \"totalSubmissionRaw\": 19051, \"acRate\": \"71.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
||||
Reference in New Issue
Block a user