{ "data": { "question": { "questionId": "1405", "questionFrontendId": "1270", "boundTopicId": null, "title": "All People Report to the Given Manager", "titleSlug": "all-people-report-to-the-given-manager", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 288, "dislikes": 22, "isLiked": null, "similarQuestions": "[]", "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]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"37.8K\", \"totalSubmission\": \"42.9K\", \"totalAcceptedRaw\": 37762, \"totalSubmissionRaw\": 42902, \"acRate\": \"88.0%\"}", "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": "{\n \"mysql\": [\n \"Create table If Not Exists Employees (employee_id int, employee_name varchar(30), manager_id int)\"\n ],\n \"mssql\": [\n \"Create table Employees (employee_id int, employee_name varchar(30), manager_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Employees (employee_id int, employee_name varchar(30), manager_id int)\"\n ],\n \"database\": true\n}", "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, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.