{ "data": { "question": { "questionId": "2315", "questionFrontendId": "2175", "categoryTitle": "Database", "boundTopicId": 1273917, "title": "The Change in Global Rankings", "titleSlug": "the-change-in-global-rankings", "content": null, "translatedTitle": null, "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\": \"240\", \"totalSubmission\": \"435\", \"totalAcceptedRaw\": 240, \"totalSubmissionRaw\": 435, \"acRate\": \"55.2%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"TeamPoints\": [\"team_id\", \"name\", \"points\"], \"PointsChange\": [\"team_id\", \"points_change\"]}, \"rows\": {\"TeamPoints\": [[3, \"Algeria\", 1431], [1, \"Senegal\", 2132], [2, \"New Zealand\", 1402], [4, \"Croatia\", 1817]], \"PointsChange\": [[3, 399], [2, 0], [4, 13], [1, -22]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists TeamPoints (team_id int, name varchar(100), points int)\",\n \"Create table If Not Exists PointsChange (team_id int, points_change int)\"\n ],\n \"mssql\": [\n \"Create table TeamPoints (team_id int, name varchar(100), points int)\",\n \"Create table PointsChange (team_id int, points_change int)\"\n ],\n \"oraclesql\": [\n \"Create table TeamPoints (team_id int, name varchar(100), points int)\",\n \"Create table PointsChange (team_id int, points_change int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists TeamPoints (team_id int, name varchar(100), points int)", "Create table If Not Exists PointsChange (team_id int, points_change int)", "Truncate table TeamPoints", "insert into TeamPoints (team_id, name, points) values ('3', 'Algeria', '1431')", "insert into TeamPoints (team_id, name, points) values ('1', 'Senegal', '2132')", "insert into TeamPoints (team_id, name, points) values ('2', 'New Zealand', '1402')", "insert into TeamPoints (team_id, name, points) values ('4', 'Croatia', '1817')", "Truncate table PointsChange", "insert into PointsChange (team_id, points_change) values ('3', '399')", "insert into PointsChange (team_id, points_change) values ('2', '0')", "insert into PointsChange (team_id, points_change) values ('4', '13')", "insert into PointsChange (team_id, points_change) values ('1', '-22')" ], "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\": {\"TeamPoints\": [\"team_id\", \"name\", \"points\"], \"PointsChange\": [\"team_id\", \"points_change\"]}, \"rows\": {\"TeamPoints\": [[3, \"Algeria\", 1431], [1, \"Senegal\", 2132], [2, \"New Zealand\", 1402], [4, \"Croatia\", 1817]], \"PointsChange\": [[3, 399], [2, 0], [4, 13], [1, -22]]}}",
"__typename": "QuestionNode"
}
}
}MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"