{ "data": { "question": { "questionId": "1214", "questionFrontendId": "1112", "categoryTitle": "Database", "boundTopicId": 33180, "title": "Highest Grade For Each Student", "titleSlug": "highest-grade-for-each-student", "content": null, "translatedTitle": "每位学生的最高成绩", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 41, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"9.7K\", \"totalSubmission\": \"14.9K\", \"totalAcceptedRaw\": 9686, \"totalSubmissionRaw\": 14878, \"acRate\": \"65.1%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Enrollments\":[\"student_id\",\"course_id\",\"grade\"]},\"rows\":{\"Enrollments\":[[2,2,95],[2,3,95],[1,1,90],[1,2,99],[3,1,80],[3,2,75],[3,3,82]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Enrollments (student_id int, course_id int, grade int)\"\n ],\n \"mssql\": [\n \"Create table Enrollments (student_id int, course_id int, grade int)\"\n ],\n \"oraclesql\": [\n \"Create table Enrollments (student_id int, course_id int, grade int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Enrollments (student_id int, course_id int, grade int)", "Truncate table Enrollments", "insert into Enrollments (student_id, course_id, grade) values ('2', '2', '95')", "insert into Enrollments (student_id, course_id, grade) values ('2', '3', '95')", "insert into Enrollments (student_id, course_id, grade) values ('1', '1', '90')", "insert into Enrollments (student_id, course_id, grade) values ('1', '2', '99')", "insert into Enrollments (student_id, course_id, grade) values ('3', '1', '80')", "insert into Enrollments (student_id, course_id, grade) values ('3', '2', '75')", "insert into Enrollments (student_id, course_id, grade) values ('3', '3', '82')" ], "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\":{\"Enrollments\":[\"student_id\",\"course_id\",\"grade\"]},\"rows\":{\"Enrollments\":[[2,2,95],[2,3,95],[1,1,90],[1,2,99],[3,1,80],[3,2,75],[3,3,82]]}}",
"__typename": "QuestionNode"
}
}
}MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"