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]market-analysis-ii.json
2022-05-02 23:44:12 +08:00

74 lines
6.0 KiB
JSON

{
"data": {
"question": {
"questionId": "1269",
"questionFrontendId": "1159",
"categoryTitle": "Database",
"boundTopicId": 33143,
"title": "Market Analysis II",
"titleSlug": "market-analysis-ii",
"content": null,
"translatedTitle": "市场分析 II",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 20,
"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\": \"10.6K\", \"totalAcceptedRaw\": 5289, \"totalSubmissionRaw\": 10595, \"acRate\": \"49.9%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Users\":[\"user_id\",\"join_date\",\"favorite_brand\"],\"Orders\":[\"order_id\",\"order_date\",\"item_id\",\"buyer_id\",\"seller_id\"],\"Items\":[\"item_id\",\"item_brand\"]},\"rows\":{\"Users\":[[1,\"2019-01-01\",\"Lenovo\"],[2,\"2019-02-09\",\"Samsung\"],[3,\"2019-01-19\",\"LG\"],[4,\"2019-05-21\",\"HP\"]],\"Orders\":[[1,\"2019-08-01\",4,1,2],[2,\"2019-08-02\",2,1,3],[3,\"2019-08-03\",3,2,3],[4,\"2019-08-04\",1,4,2],[5,\"2019-08-04\",1,3,4],[6,\"2019-08-05\",2,2,4]],\"Items\":[[1,\"Samsung\"],[2,\"Lenovo\"],[3,\"LG\"],[4,\"HP\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Users (user_id int, join_date date, favorite_brand varchar(10))\",\n \"Create table If Not Exists Orders (order_id int, order_date date, item_id int, buyer_id int, seller_id int)\",\n \"Create table If Not Exists Items (item_id int, item_brand varchar(10))\"\n ],\n \"mssql\": [\n \"Create table Users (user_id int, join_date date, favorite_brand varchar(10))\",\n \"Create table Orders (order_id int, order_date date, item_id int, buyer_id int, seller_id int)\",\n \"Create table Items (item_id int, item_brand varchar(10))\"\n ],\n \"oraclesql\": [\n \"Create table Users (user_id int, join_date date, favorite_brand varchar(10))\",\n \"Create table Orders (order_id int, order_date date, item_id int, buyer_id int, seller_id int)\",\n \"Create table Items (item_id int, item_brand varchar(10))\",\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 Users (user_id int, join_date date, favorite_brand varchar(10))",
"Create table If Not Exists Orders (order_id int, order_date date, item_id int, buyer_id int, seller_id int)",
"Create table If Not Exists Items (item_id int, item_brand varchar(10))",
"Truncate table Users",
"insert into Users (user_id, join_date, favorite_brand) values ('1', '2019-01-01', 'Lenovo')",
"insert into Users (user_id, join_date, favorite_brand) values ('2', '2019-02-09', 'Samsung')",
"insert into Users (user_id, join_date, favorite_brand) values ('3', '2019-01-19', 'LG')",
"insert into Users (user_id, join_date, favorite_brand) values ('4', '2019-05-21', 'HP')",
"Truncate table Orders",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('1', '2019-08-01', '4', '1', '2')",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('2', '2019-08-02', '2', '1', '3')",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('3', '2019-08-03', '3', '2', '3')",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('4', '2019-08-04', '1', '4', '2')",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('5', '2019-08-04', '1', '3', '4')",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('6', '2019-08-05', '2', '2', '4')",
"Truncate table Items",
"insert into Items (item_id, item_brand) values ('1', 'Samsung')",
"insert into Items (item_id, item_brand) values ('2', 'Lenovo')",
"insert into Items (item_id, item_brand) values ('3', 'LG')",
"insert into Items (item_id, item_brand) values ('4', 'HP')"
],
"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\":{\"Users\":[\"user_id\",\"join_date\",\"favorite_brand\"],\"Orders\":[\"order_id\",\"order_date\",\"item_id\",\"buyer_id\",\"seller_id\"],\"Items\":[\"item_id\",\"item_brand\"]},\"rows\":{\"Users\":[[1,\"2019-01-01\",\"Lenovo\"],[2,\"2019-02-09\",\"Samsung\"],[3,\"2019-01-19\",\"LG\"],[4,\"2019-05-21\",\"HP\"]],\"Orders\":[[1,\"2019-08-01\",4,1,2],[2,\"2019-08-02\",2,1,3],[3,\"2019-08-03\",3,2,3],[4,\"2019-08-04\",1,4,2],[5,\"2019-08-04\",1,3,4],[6,\"2019-08-05\",2,2,4]],\"Items\":[[1,\"Samsung\"],[2,\"Lenovo\"],[3,\"LG\"],[4,\"HP\"]]}}",
"__typename": "QuestionNode"
}
}
}