1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]product-sales-analysis-v.json

66 lines
4.8 KiB
JSON
Raw Normal View History

2022-07-12 21:08:31 +08:00
{
"data": {
"question": {
"questionId": "2452",
"questionFrontendId": "2329",
"categoryTitle": "Database",
"boundTopicId": 1643199,
"title": "Product Sales Analysis V",
"titleSlug": "product-sales-analysis-v",
"content": null,
2023-12-09 18:42:21 +08:00
"translatedTitle": "产品销售分析Ⅴ",
2022-07-12 21:08:31 +08:00
"translatedContent": null,
"isPaidOnly": true,
2023-12-09 18:42:21 +08:00
"difficulty": "Easy",
"likes": 1,
2022-07-12 21:08:31 +08:00
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
2023-12-09 18:42:21 +08:00
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
2022-07-12 21:08:31 +08:00
"companyTagStats": null,
"codeSnippets": null,
2023-12-09 19:57:46 +08:00
"stats": "{\"totalAccepted\": \"1.4K\", \"totalSubmission\": \"1.9K\", \"totalAcceptedRaw\": 1372, \"totalSubmissionRaw\": 1912, \"acRate\": \"71.8%\"}",
2022-07-12 21:08:31 +08:00
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Sales\": [\"sale_id\", \"product_id\", \"user_id\", \"quantity\"], \"Product\": [\"product_id\", \"price\"]}, \"rows\": {\"Sales\": [[1, 1, 101, 10], [2, 2, 101, 1], [3, 3, 102, 3], [4, 3, 102, 2], [5, 2, 103, 3]], \"Product\": [[1, 10], [2, 25], [3, 15]]}}",
2023-12-09 18:42:21 +08:00
"metaData": "{\"mysql\":[\"Create table If Not Exists Sales (sale_id int, product_id int, user_id int, quantity int)\",\"Create table If Not Exists Product (product_id int, price int)\"],\"mssql\":[\"Create table Sales (sale_id int, product_id int, user_id int, quantity int)\",\"Create table Product (product_id int, price int)\"],\"oraclesql\":[\"Create table Sales (sale_id int, product_id int, user_id int, quantity int)\",\"Create table Product (product_id int, price int)\"],\"database\":true,\"name\":\"product_sales_analysis\",\"pythondata\":[\"Sales = pd.DataFrame([], columns=['sale_id', 'product_id', 'user_id', 'quantity']).astype({'sale_id':'Int64', 'product_id':'Int64', 'user_id':'Int64', 'quantity':'Int64'})\",\"Product = pd.DataFrame([], columns=['product_id', 'price']).astype({'product_id':'Int64', 'price':'Int64'})\"],\"postgresql\":[\"Create table If Not Exists Sales (sale_id int, product_id int, user_id int, quantity int)\",\"Create table If Not Exists Product (product_id int, price int)\"],\"database_schema\":{\"Sales\":{\"sale_id\":\"INT\",\"product_id\":\"INT\",\"user_id\":\"INT\",\"quantity\":\"INT\"},\"Product\":{\"product_id\":\"INT\",\"price\":\"INT\"}}}",
2022-07-12 21:08:31 +08:00
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Sales (sale_id int, product_id int, user_id int, quantity int)",
"Create table If Not Exists Product (product_id int, price int)",
"Truncate table Sales",
"insert into Sales (sale_id, product_id, user_id, quantity) values ('1', '1', '101', '10')",
"insert into Sales (sale_id, product_id, user_id, quantity) values ('2', '2', '101', '1')",
"insert into Sales (sale_id, product_id, user_id, quantity) values ('3', '3', '102', '3')",
"insert into Sales (sale_id, product_id, user_id, quantity) values ('4', '3', '102', '2')",
"insert into Sales (sale_id, product_id, user_id, quantity) values ('5', '2', '103', '3')",
"Truncate table Product",
"insert into Product (product_id, price) values ('1', '10')",
"insert into Product (product_id, price) values ('2', '25')",
"insert into Product (product_id, price) values ('3', '15')"
],
"enableRunCode": true,
2023-12-09 18:42:21 +08:00
"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>\"]}",
2022-07-12 21:08:31 +08:00
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\": {\"Sales\": [\"sale_id\", \"product_id\", \"user_id\", \"quantity\"], \"Product\": [\"product_id\", \"price\"]}, \"rows\": {\"Sales\": [[1, 1, 101, 10], [2, 2, 101, 1], [3, 3, 102, 3], [4, 3, 102, 2], [5, 2, 103, 3]], \"Product\": [[1, 10], [2, 25], [3, 15]]}}",
"__typename": "QuestionNode"
}
}
}