mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-26 18:20:27 +08:00
72 lines
6.0 KiB
JSON
72 lines
6.0 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "1462",
|
|
"questionFrontendId": "1327",
|
|
"boundTopicId": null,
|
|
"title": "List the Products Ordered in a Period",
|
|
"titleSlug": "list-the-products-ordered-in-a-period",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Easy",
|
|
"likes": 78,
|
|
"dislikes": 19,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"exampleTestcases": "{\"headers\": {\"Products\": [\"product_id\", \"product_name\", \"product_category\"], \"Orders\": [\"product_id\", \"order_date\", \"unit\"]}, \"rows\": {\"Products\": [[1, \"Leetcode Solutions\", \"Book\"], [2, \"Jewels of Stringology\", \"Book\"], [3, \"HP\", \"Laptop\"], [4, \"Lenovo\", \"Laptop\"], [5, \"Leetcode Kit\", \"T-shirt\"]], \"Orders\": [[1, \"2020-02-05\", 60], [1, \"2020-02-10\", 70], [2, \"2020-01-18\", 30], [2, \"2020-02-11\", 80], [3, \"2020-02-17\", 2], [3, \"2020-02-24\", 3], [4, \"2020-03-01\", 20], [4, \"2020-03-04\", 30], [4, \"2020-03-04\", 60], [5, \"2020-02-25\", 50], [5, \"2020-02-27\", 50], [5, \"2020-03-01\", 50]]}}",
|
|
"categoryTitle": "Database",
|
|
"contributors": [],
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": null,
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"27.1K\", \"totalSubmission\": \"35.1K\", \"totalAcceptedRaw\": 27145, \"totalSubmissionRaw\": 35138, \"acRate\": \"77.3%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\": {\"Products\": [\"product_id\", \"product_name\", \"product_category\"], \"Orders\": [\"product_id\", \"order_date\", \"unit\"]}, \"rows\": {\"Products\": [[1, \"Leetcode Solutions\", \"Book\"], [2, \"Jewels of Stringology\", \"Book\"], [3, \"HP\", \"Laptop\"], [4, \"Lenovo\", \"Laptop\"], [5, \"Leetcode Kit\", \"T-shirt\"]], \"Orders\": [[1, \"2020-02-05\", 60], [1, \"2020-02-10\", 70], [2, \"2020-01-18\", 30], [2, \"2020-02-11\", 80], [3, \"2020-02-17\", 2], [3, \"2020-02-24\", 3], [4, \"2020-03-01\", 20], [4, \"2020-03-04\", 30], [4, \"2020-03-04\", 60], [5, \"2020-02-25\", 50], [5, \"2020-02-27\", 50], [5, \"2020-03-01\", 50]]}}",
|
|
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Products (product_id int, product_name varchar(40), product_category varchar(40))\",\n \"Create table If Not Exists Orders (product_id int, order_date date, unit int)\"\n ],\n \"mssql\": [\n \"Create table Products (product_id int, product_name varchar(40), product_category varchar(40))\\n\",\n \"Create table Orders (product_id int, order_date date, unit int)\"\n ],\n \"oraclesql\": [\n \"Create table Products (product_id int, product_name varchar(40), product_category varchar(40))\",\n \"Create table Orders (product_id int, order_date date, unit int)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"\n ],\n \"database\": true\n}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Products (product_id int, product_name varchar(40), product_category varchar(40))",
|
|
"Create table If Not Exists Orders (product_id int, order_date date, unit int)",
|
|
"Truncate table Products",
|
|
"insert into Products (product_id, product_name, product_category) values ('1', 'Leetcode Solutions', 'Book')",
|
|
"insert into Products (product_id, product_name, product_category) values ('2', 'Jewels of Stringology', 'Book')",
|
|
"insert into Products (product_id, product_name, product_category) values ('3', 'HP', 'Laptop')",
|
|
"insert into Products (product_id, product_name, product_category) values ('4', 'Lenovo', 'Laptop')",
|
|
"insert into Products (product_id, product_name, product_category) values ('5', 'Leetcode Kit', 'T-shirt')",
|
|
"Truncate table Orders",
|
|
"insert into Orders (product_id, order_date, unit) values ('1', '2020-02-05', '60')",
|
|
"insert into Orders (product_id, order_date, unit) values ('1', '2020-02-10', '70')",
|
|
"insert into Orders (product_id, order_date, unit) values ('2', '2020-01-18', '30')",
|
|
"insert into Orders (product_id, order_date, unit) values ('2', '2020-02-11', '80')",
|
|
"insert into Orders (product_id, order_date, unit) values ('3', '2020-02-17', '2')",
|
|
"insert into Orders (product_id, order_date, unit) values ('3', '2020-02-24', '3')",
|
|
"insert into Orders (product_id, order_date, unit) values ('4', '2020-03-01', '20')",
|
|
"insert into Orders (product_id, order_date, unit) values ('4', '2020-03-04', '30')",
|
|
"insert into Orders (product_id, order_date, unit) values ('4', '2020-03-04', '60')",
|
|
"insert into Orders (product_id, order_date, unit) values ('5', '2020-02-25', '50')",
|
|
"insert into Orders (product_id, order_date, unit) values ('5', '2020-02-27', '50')",
|
|
"insert into Orders (product_id, order_date, unit) values ('5', '2020-03-01', '50')"
|
|
],
|
|
"enableRunCode": true,
|
|
"enableTestMode": false,
|
|
"enableDebugger": false,
|
|
"envInfo": "{\"mysql\": [\"MySQL\", \"<p><code>MySQL 8.0</code>.</p>\"], \"mssql\": [\"MS SQL Server\", \"<p><code>mssql server 2019</code>.</p>\"], \"oraclesql\": [\"Oracle\", \"<p><code>Oracle Sql 11.2</code>.</p>\"]}",
|
|
"libraryUrl": null,
|
|
"adminUrl": null,
|
|
"challengeQuestion": null,
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |