{ "data": { "question": { "questionId": "1718", "questionFrontendId": "1571", "categoryTitle": "Database", "boundTopicId": 400825, "title": "Warehouse Manager", "titleSlug": "warehouse-manager", "content": null, "translatedTitle": "仓库经理", "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 7, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"5K\", \"totalSubmission\": \"6.5K\", \"totalAcceptedRaw\": 4963, \"totalSubmissionRaw\": 6482, \"acRate\": \"76.6%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"Warehouse\": [\"name\", \"product_id\", \"units\"], \"Products\": [\"product_id\", \"product_name\", \"Width\", \"Length\", \"Height\"]}, \"rows\": {\"Warehouse\": [[\"LCHouse1\", 1, 1], [\"LCHouse1\", 2, 10], [\"LCHouse1\", 3, 5], [\"LCHouse2\", 1, 2], [\"LCHouse2\", 2, 2], [\"LCHouse3\", 4, 1]], \"Products\": [[1, \"LC-TV\", 5, 50, 40], [2, \"LC-KeyChain\", 5, 5, 5], [3, \"LC-Phone\", 2, 10, 10], [4, \"LC-T-Shirt\", 4, 10, 20]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Warehouse (name varchar(50), product_id int, units int)\\n\",\n \"Create table If Not Exists Products (product_id int, product_name varchar(50), Width int,Length int,Height int)\"\n ],\n \"mssql\": [\n \"Create table Warehouse (name varchar(50), product_id int, units int)\\n\",\n \"Create table Products (product_id int, product_name varchar(50), Width int,Length int,Height int)\\n\"\n ],\n \"oraclesql\": [\n \"Create table Warehouse (name varchar(50), product_id int, units int)\\n\",\n \"Create table Products (product_id int, product_name varchar(50), Width int,Length int,Height int)\\n\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Warehouse (name varchar(50), product_id int, units int)\n", "Create table If Not Exists Products (product_id int, product_name varchar(50), Width int,Length int,Height int)", "Truncate table Warehouse", "insert into Warehouse (name, product_id, units) values ('LCHouse1', '1', '1')", "insert into Warehouse (name, product_id, units) values ('LCHouse1', '2', '10')", "insert into Warehouse (name, product_id, units) values ('LCHouse1', '3', '5')", "insert into Warehouse (name, product_id, units) values ('LCHouse2', '1', '2')", "insert into Warehouse (name, product_id, units) values ('LCHouse2', '2', '2')", "insert into Warehouse (name, product_id, units) values ('LCHouse3', '4', '1')", "Truncate table Products", "insert into Products (product_id, product_name, Width, Length, Height) values ('1', 'LC-TV', '5', '50', '40')", "insert into Products (product_id, product_name, Width, Length, Height) values ('2', 'LC-KeyChain', '5', '5', '5')", "insert into Products (product_id, product_name, Width, Length, Height) values ('3', 'LC-Phone', '2', '10', '10')", "insert into Products (product_id, product_name, Width, Length, Height) values ('4', 'LC-T-Shirt', '4', '10', '20')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"

\\u7248\\u672c\\uff1aMySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"

mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"

Oracle Sql 11.2.<\\/p>\"]}", "book": null, "isSubscribed": false, "isDailyQuestion": false, "dailyRecordStatus": null, "editorType": "CKEDITOR", "ugcQuestionId": null, "style": "LEETCODE", "exampleTestcases": "{\"headers\": {\"Warehouse\": [\"name\", \"product_id\", \"units\"], \"Products\": [\"product_id\", \"product_name\", \"Width\", \"Length\", \"Height\"]}, \"rows\": {\"Warehouse\": [[\"LCHouse1\", 1, 1], [\"LCHouse1\", 2, 10], [\"LCHouse1\", 3, 5], [\"LCHouse2\", 1, 2], [\"LCHouse2\", 2, 2], [\"LCHouse3\", 4, 1]], \"Products\": [[1, \"LC-TV\", 5, 50, 40], [2, \"LC-KeyChain\", 5, 5, 5], [3, \"LC-Phone\", 2, 10, 10], [4, \"LC-T-Shirt\", 4, 10, 20]]}}", "__typename": "QuestionNode" } } }