{ "data": { "question": { "questionId": "1405", "questionFrontendId": "1270", "categoryTitle": "Database", "boundTopicId": 47942, "title": "All People Report to the Given Manager", "titleSlug": "all-people-report-to-the-given-manager", "content": null, "translatedTitle": "向公司 CEO 汇报工作的所有人", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 78, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"13.6K\", \"totalSubmission\": \"17.1K\", \"totalAcceptedRaw\": 13566, \"totalSubmissionRaw\": 17124, \"acRate\": \"79.2%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Employees\":[\"employee_id\",\"employee_name\",\"manager_id\"]},\"rows\":{\"Employees\":[[1,\"Boss\",1],[3,\"Alice\",3],[2,\"Bob\",1],[4,\"Daniel\",2],[7,\"Luis\",4],[8,\"John\",3],[9,\"Angela\",8],[77,\"Robert\",1]]}}", "metaData": "{\"mysql\":[\"Create table If Not Exists Employees (employee_id int, employee_name varchar(30), manager_id int)\"],\"mssql\":[\"Create table Employees (employee_id int, employee_name varchar(30), manager_id int)\"],\"oraclesql\":[\"Create table Employees (employee_id int, employee_name varchar(30), manager_id int)\"],\"database\":true,\"name\":\"find_reporting_people\",\"pythondata\":[\"Employees = pd.DataFrame([], columns=['employee_id', 'employee_name', 'manager_id']).astype({'employee_id':'Int64', 'employee_name':'object', 'manager_id':'Int64'})\"],\"postgresql\":[\"\\nCreate table If Not Exists Employees (employee_id int, employee_name varchar(30), manager_id int)\"],\"database_schema\":{\"Employees\":{\"employee_id\":\"INT\",\"employee_name\":\"VARCHAR(30)\",\"manager_id\":\"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Employees (employee_id int, employee_name varchar(30), manager_id int)", "Truncate table Employees", "insert into Employees (employee_id, employee_name, manager_id) values ('1', 'Boss', '1')", "insert into Employees (employee_id, employee_name, manager_id) values ('3', 'Alice', '3')", "insert into Employees (employee_id, employee_name, manager_id) values ('2', 'Bob', '1')", "insert into Employees (employee_id, employee_name, manager_id) values ('4', 'Daniel', '2')", "insert into Employees (employee_id, employee_name, manager_id) values ('7', 'Luis', '4')", "insert into Employees (employee_id, employee_name, manager_id) values ('8', 'John', '3')", "insert into Employees (employee_id, employee_name, manager_id) values ('9', 'Angela', '8')", "insert into Employees (employee_id, employee_name, manager_id) values ('77', 'Robert', '1')" ], "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>\"],\"pythondata\":[\"Pandas\",\"

Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"

PostgreSQL 16<\\/p>\"]}", "book": null, "isSubscribed": false, "isDailyQuestion": false, "dailyRecordStatus": null, "editorType": "CKEDITOR", "ugcQuestionId": null, "style": "LEETCODE", "exampleTestcases": "{\"headers\":{\"Employees\":[\"employee_id\",\"employee_name\",\"manager_id\"]},\"rows\":{\"Employees\":[[1,\"Boss\",1],[3,\"Alice\",3],[2,\"Bob\",1],[4,\"Daniel\",2],[7,\"Luis\",4],[8,\"John\",3],[9,\"Angela\",8],[77,\"Robert\",1]]}}", "__typename": "QuestionNode" } } }