{ "data": { "question": { "questionId": "2315", "questionFrontendId": "2175", "boundTopicId": null, "title": "The Change in Global Rankings", "titleSlug": "the-change-in-global-rankings", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 7, "dislikes": 5, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": null, "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"795\", \"totalSubmission\": \"1.2K\", \"totalAcceptedRaw\": 795, \"totalSubmissionRaw\": 1221, \"acRate\": \"65.1%\"}", "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, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.