{ "data": { "question": { "questionId": "2185", "questionFrontendId": "2041", "categoryTitle": "Database", "boundTopicId": 1051111, "title": "Accepted Candidates From the Interviews", "titleSlug": "accepted-candidates-from-the-interviews", "content": null, "translatedTitle": "面试中被录取的候选人", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 1, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"801\", \"totalSubmission\": \"1.1K\", \"totalAcceptedRaw\": 801, \"totalSubmissionRaw\": 1093, \"acRate\": \"73.3%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Candidates\":[\"candidate_id\",\"name\",\"years_of_exp\",\"interview_id\"],\"Rounds\":[\"interview_id\",\"round_id\",\"score\"]},\"rows\":{\"Candidates\":[[11,\"Atticus\",1,101],[9,\"Ruben\",6,104],[6,\"Aliza\",10,109],[8,\"Alfredo\",0,107]],\"Rounds\":[[109,3,4],[101,2,8],[109,4,1],[107,1,3],[104,3,6],[109,1,4],[104,4,7],[104,1,2],[109,2,1],[104,2,7],[107,2,3],[101,1,8]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Candidates (candidate_id int, name varchar(30), years_of_exp int, interview_id int)\",\n \"Create table If Not Exists Rounds (interview_id int, round_id int, score int)\"\n ],\n \"mssql\": [\n \"Create table Candidates (candidate_id int, name varchar(30), years_of_exp int, interview_id int)\",\n \"Create table Rounds (interview_id int, round_id int, score int)\"\n ],\n \"oraclesql\": [\n \"Create table Candidates (candidate_id int, name varchar(30), years_of_exp int, interview_id int)\",\n \"Create table Rounds (interview_id int, round_id int, score int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Candidates (candidate_id int, name varchar(30), years_of_exp int, interview_id int)", "Create table If Not Exists Rounds (interview_id int, round_id int, score int)", "Truncate table Candidates", "insert into Candidates (candidate_id, name, years_of_exp, interview_id) values ('11', 'Atticus', '1', '101')", "insert into Candidates (candidate_id, name, years_of_exp, interview_id) values ('9', 'Ruben', '6', '104')", "insert into Candidates (candidate_id, name, years_of_exp, interview_id) values ('6', 'Aliza', '10', '109')", "insert into Candidates (candidate_id, name, years_of_exp, interview_id) values ('8', 'Alfredo', '0', '107')", "Truncate table Rounds", "insert into Rounds (interview_id, round_id, score) values ('109', '3', '4')", "insert into Rounds (interview_id, round_id, score) values ('101', '2', '8')", "insert into Rounds (interview_id, round_id, score) values ('109', '4', '1')", "insert into Rounds (interview_id, round_id, score) values ('107', '1', '3')", "insert into Rounds (interview_id, round_id, score) values ('104', '3', '6')", "insert into Rounds (interview_id, round_id, score) values ('109', '1', '4')", "insert into Rounds (interview_id, round_id, score) values ('104', '4', '7')", "insert into Rounds (interview_id, round_id, score) values ('104', '1', '2')", "insert into Rounds (interview_id, round_id, score) values ('109', '2', '1')", "insert into Rounds (interview_id, round_id, score) values ('104', '2', '7')", "insert into Rounds (interview_id, round_id, score) values ('107', '2', '3')", "insert into Rounds (interview_id, round_id, score) values ('101', '1', '8')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"
\\u7248\\u672c\\uff1a 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\":{\"Candidates\":[\"candidate_id\",\"name\",\"years_of_exp\",\"interview_id\"],\"Rounds\":[\"interview_id\",\"round_id\",\"score\"]},\"rows\":{\"Candidates\":[[11,\"Atticus\",1,101],[9,\"Ruben\",6,104],[6,\"Aliza\",10,109],[8,\"Alfredo\",0,107]],\"Rounds\":[[109,3,4],[101,2,8],[109,4,1],[107,1,3],[104,3,6],[109,1,4],[104,4,7],[104,1,2],[109,2,1],[104,2,7],[107,2,3],[101,1,8]]}}",
"__typename": "QuestionNode"
}
}
}MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"