1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-25 17:50:26 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]the-most-recent-orders-for-each-product.json

79 lines
6.6 KiB
JSON
Raw Normal View History

2022-03-27 20:45:09 +08:00
{
"data": {
"question": {
"questionId": "1688",
"questionFrontendId": "1549",
"categoryTitle": "Database",
"boundTopicId": 373828,
"title": "The Most Recent Orders for Each Product",
"titleSlug": "the-most-recent-orders-for-each-product",
"content": null,
"translatedTitle": "每件商品的最新订单",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
2022-05-02 23:44:12 +08:00
"likes": 8,
2022-03-27 20:45:09 +08:00
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
2022-05-02 23:44:12 +08:00
"stats": "{\"totalAccepted\": \"3.6K\", \"totalSubmission\": \"5.3K\", \"totalAcceptedRaw\": 3570, \"totalSubmissionRaw\": 5312, \"acRate\": \"67.2%\"}",
2022-03-27 20:45:09 +08:00
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Customers\":[\"customer_id\",\"name\"],\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"product_id\"],\"Products\":[\"product_id\",\"product_name\",\"price\"]},\"rows\":{\"Customers\":[[1,\"Winston\"],[2,\"Jonathan\"],[3,\"Annabelle\"],[4,\"Marwan\"],[5,\"Khaled\"]],\"Orders\":[[1,\"2020-07-31\",1,1],[2,\"2020-7-30\",2,2],[3,\"2020-08-29\",3,3],[4,\"2020-07-29\",4,1],[5,\"2020-06-10\",1,2],[6,\"2020-08-01\",2,1],[7,\"2020-08-01\",3,1],[8,\"2020-08-03\",1,2],[9,\"2020-08-07\",2,3],[10,\"2020-07-15\",1,2]],\"Products\":[[1,\"keyboard\",120],[2,\"mouse\",80],[3,\"screen\",600],[4,\"hard disk\",450]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customers (customer_id int, name varchar(10))\",\n \"Create table If Not Exists Orders (order_id int, order_date date, customer_id int, product_id int)\",\n \"Create table If Not Exists Products (product_id int, product_name varchar(20), price int)\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, name varchar(10))\",\n \"Create table Orders (order_id int, order_date date, customer_id int, product_id int)\",\n \"Create table Products (product_id int, product_name varchar(20), price int)\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, name varchar(10))\",\n \"Create table Orders (order_id int, order_date date, customer_id int, product_id int)\",\n \"Create table Products (product_id int, product_name varchar(20), price 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 Customers (customer_id int, name varchar(10))",
"Create table If Not Exists Orders (order_id int, order_date date, customer_id int, product_id int)",
"Create table If Not Exists Products (product_id int, product_name varchar(20), price int)",
"Truncate table Customers",
"insert into Customers (customer_id, name) values ('1', 'Winston')",
"insert into Customers (customer_id, name) values ('2', 'Jonathan')",
"insert into Customers (customer_id, name) values ('3', 'Annabelle')",
"insert into Customers (customer_id, name) values ('4', 'Marwan')",
"insert into Customers (customer_id, name) values ('5', 'Khaled')",
"Truncate table Orders",
"insert into Orders (order_id, order_date, customer_id, product_id) values ('1', '2020-07-31', '1', '1')",
"insert into Orders (order_id, order_date, customer_id, product_id) values ('2', '2020-7-30', '2', '2')",
"insert into Orders (order_id, order_date, customer_id, product_id) values ('3', '2020-08-29', '3', '3')",
"insert into Orders (order_id, order_date, customer_id, product_id) values ('4', '2020-07-29', '4', '1')",
"insert into Orders (order_id, order_date, customer_id, product_id) values ('5', '2020-06-10', '1', '2')",
"insert into Orders (order_id, order_date, customer_id, product_id) values ('6', '2020-08-01', '2', '1')",
"insert into Orders (order_id, order_date, customer_id, product_id) values ('7', '2020-08-01', '3', '1')",
"insert into Orders (order_id, order_date, customer_id, product_id) values ('8', '2020-08-03', '1', '2')",
"insert into Orders (order_id, order_date, customer_id, product_id) values ('9', '2020-08-07', '2', '3')",
"insert into Orders (order_id, order_date, customer_id, product_id) values ('10', '2020-07-15', '1', '2')",
"Truncate table Products",
"insert into Products (product_id, product_name, price) values ('1', 'keyboard', '120')",
"insert into Products (product_id, product_name, price) values ('2', 'mouse', '80')",
"insert into Products (product_id, product_name, price) values ('3', 'screen', '600')",
"insert into Products (product_id, product_name, price) values ('4', 'hard disk', '450')"
],
"enableRunCode": true,
"envInfo": "{\"mysql\":[\"MySQL\",\"<p>\\u7248\\u672c\\uff1a<code>MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"<p>mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"<p>Oracle Sql 11.2.<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\":{\"Customers\":[\"customer_id\",\"name\"],\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"product_id\"],\"Products\":[\"product_id\",\"product_name\",\"price\"]},\"rows\":{\"Customers\":[[1,\"Winston\"],[2,\"Jonathan\"],[3,\"Annabelle\"],[4,\"Marwan\"],[5,\"Khaled\"]],\"Orders\":[[1,\"2020-07-31\",1,1],[2,\"2020-7-30\",2,2],[3,\"2020-08-29\",3,3],[4,\"2020-07-29\",4,1],[5,\"2020-06-10\",1,2],[6,\"2020-08-01\",2,1],[7,\"2020-08-01\",3,1],[8,\"2020-08-03\",1,2],[9,\"2020-08-07\",2,3],[10,\"2020-07-15\",1,2]],\"Products\":[[1,\"keyboard\",120],[2,\"mouse\",80],[3,\"screen\",600],[4,\"hard disk\",450]]}}",
"__typename": "QuestionNode"
}
}
}