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]orders-with-maximum-quantity-above-average.json

70 lines
5.0 KiB
JSON

{
"data": {
"question": {
"questionId": "2014",
"questionFrontendId": "1867",
"categoryTitle": "Database",
"boundTopicId": 781374,
"title": "Orders With Maximum Quantity Above Average",
"titleSlug": "orders-with-maximum-quantity-above-average",
"content": null,
"translatedTitle": "最大数量高于平均水平的订单",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 12,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5.3K\", \"totalSubmission\": \"7.8K\", \"totalAcceptedRaw\": 5272, \"totalSubmissionRaw\": 7808, \"acRate\": \"67.5%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"OrdersDetails\": [\"order_id\", \"product_id\", \"quantity\"]}, \"rows\": {\"OrdersDetails\": [[1 ,1, 12], [1 ,2, 10], [1 ,3, 15], [2 ,1, 8], [2 ,4, 4], [2 ,5, 6], [3 , 3, 5], [3 ,4, 18], [4 ,5, 2], [4 ,6, 8], [5 ,7, 9], [5 ,8, 9], [3 ,9, 20], [2 ,9, 4]]}}",
"metaData": "{\"mysql\":[\"Create table If Not Exists OrdersDetails (order_id int, product_id int, quantity int)\"],\"mssql\":[\"Create table OrdersDetails (order_id int, product_id int, quantity int)\"],\"oraclesql\":[\"Create table OrdersDetails (order_id int, product_id int, quantity int)\"],\"database\":true,\"name\":\"orders_above_average\",\"pythondata\":[\"OrdersDetails = pd.DataFrame([], columns=['order_id', 'product_id', 'quantity']).astype({'order_id':'Int64', 'product_id':'Int64', 'quantity':'Int64'})\"],\"postgresql\":[\"Create table If Not Exists OrdersDetails (order_id int, product_id int, quantity int)\"],\"database_schema\":{\"OrdersDetails\":{\"order_id\":\"INT\",\"product_id\":\"INT\",\"quantity\":\"INT\"}}}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists OrdersDetails (order_id int, product_id int, quantity int)",
"Truncate table OrdersDetails",
"insert into OrdersDetails (order_id, product_id, quantity) values ('1', '1', '12')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('1', '2', '10')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('1', '3', '15')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '1', '8')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '4', '4')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '5', '6')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('3', '3', '5')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('3', '4', '18')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('4', '5', '2')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('4', '6', '8')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('5', '7', '9')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('5', '8', '9')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('3', '9', '20')",
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '9', '4')"
],
"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\": {\"OrdersDetails\": [\"order_id\", \"product_id\", \"quantity\"]}, \"rows\": {\"OrdersDetails\": [[1 ,1, 12], [1 ,2, 10], [1 ,3, 15], [2 ,1, 8], [2 ,4, 4], [2 ,5, 6], [3 , 3, 5], [3 ,4, 18], [4 ,5, 2], [4 ,6, 8], [5 ,7, 9], [5 ,8, 9], [3 ,9, 20], [2 ,9, 4]]}}",
"__typename": "QuestionNode"
}
}
}