1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]the-most-recent-three-orders.json
2023-12-09 19:57:46 +08:00

73 lines
6.2 KiB
JSON

{
"data": {
"question": {
"questionId": "1671",
"questionFrontendId": "1532",
"categoryTitle": "Database",
"boundTopicId": 352944,
"title": "The Most Recent Three Orders",
"titleSlug": "the-most-recent-three-orders",
"content": null,
"translatedTitle": "最近的三笔订单",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 21,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"8.9K\", \"totalSubmission\": \"14.1K\", \"totalAcceptedRaw\": 8889, \"totalSubmissionRaw\": 14070, \"acRate\": \"63.2%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Customers\":[\"customer_id\",\"name\"],\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"cost\"]},\"rows\":{\"Customers\":[[1,\"Winston\"],[2,\"Jonathan\"],[3,\"Annabelle\"],[4,\"Marwan\"],[5,\"Khaled\"]],\"Orders\":[[1,\"2020-07-31\",1,30],[2,\"2020-7-30\",2,40],[3,\"2020-07-31\",3,70],[4,\"2020-07-29\",4,100],[5,\"2020-06-10\",1,1010],[6,\"2020-08-01\",2,102],[7,\"2020-08-01\",3,111],[8,\"2020-08-03\",1,99],[9,\"2020-08-07\",2,32],[10,\"2020-07-15\",1,2]]}}",
"metaData": "{\"mysql\":[\"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, cost int)\"],\"mssql\":[\"Create table Customers (customer_id int, name varchar(10))\",\"Create table Orders (order_id int, order_date date, customer_id int, cost int)\"],\"oraclesql\":[\"Create table Customers (customer_id int, name varchar(10))\",\"Create table Orders (order_id int, order_date date, customer_id int, cost int)\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"],\"database\":true,\"name\":\"recent_three_orders\",\"pythondata\":[\"Customers = pd.DataFrame([], columns=['customer_id', 'name']).astype({'customer_id':'Int64', 'name':'object'})\",\"Orders = pd.DataFrame([], columns=['order_id', 'order_date', 'customer_id', 'cost']).astype({'order_id':'Int64', 'order_date':'datetime64[ns]', 'customer_id':'Int64', 'cost':'Int64'})\"],\"postgresql\":[\"\\nCreate 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, cost int)\"],\"database_schema\":{\"Customers\":{\"customer_id\":\"INT\",\"name\":\"VARCHAR(10)\"},\"Orders\":{\"order_id\":\"INT\",\"order_date\":\"DATE\",\"customer_id\":\"INT\",\"cost\":\"INT\"}}}",
"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, cost 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, cost) values ('1', '2020-07-31', '1', '30')",
"insert into Orders (order_id, order_date, customer_id, cost) values ('2', '2020-7-30', '2', '40')",
"insert into Orders (order_id, order_date, customer_id, cost) values ('3', '2020-07-31', '3', '70')",
"insert into Orders (order_id, order_date, customer_id, cost) values ('4', '2020-07-29', '4', '100')",
"insert into Orders (order_id, order_date, customer_id, cost) values ('5', '2020-06-10', '1', '1010')",
"insert into Orders (order_id, order_date, customer_id, cost) values ('6', '2020-08-01', '2', '102')",
"insert into Orders (order_id, order_date, customer_id, cost) values ('7', '2020-08-01', '3', '111')",
"insert into Orders (order_id, order_date, customer_id, cost) values ('8', '2020-08-03', '1', '99')",
"insert into Orders (order_id, order_date, customer_id, cost) values ('9', '2020-08-07', '2', '32')",
"insert into Orders (order_id, order_date, customer_id, cost) values ('10', '2020-07-15', '1', '2')"
],
"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>\"],\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/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\",\"cost\"]},\"rows\":{\"Customers\":[[1,\"Winston\"],[2,\"Jonathan\"],[3,\"Annabelle\"],[4,\"Marwan\"],[5,\"Khaled\"]],\"Orders\":[[1,\"2020-07-31\",1,30],[2,\"2020-7-30\",2,40],[3,\"2020-07-31\",3,70],[4,\"2020-07-29\",4,100],[5,\"2020-06-10\",1,1010],[6,\"2020-08-01\",2,102],[7,\"2020-08-01\",3,111],[8,\"2020-08-03\",1,99],[9,\"2020-08-07\",2,32],[10,\"2020-07-15\",1,2]]}}",
"__typename": "QuestionNode"
}
}
}