"content":"<p>Table: <code>Scores</code></p>\n\n<pre>\n+-------------+---------+\n| Column Name | Type |\n+-------------+---------+\n| id | int |\n| score | decimal |\n+-------------+---------+\nid is the primary key (column with unique values) for this table.\nEach row of this table contains the score of a game. Score is a floating point value with two decimal places.\n</pre>\n\n<p> </p>\n\n<p>Write a solution to find the rank of the scores. The ranking should be calculated according to the following rules:</p>\n\n<ul>\n\t<li>The scores should be ranked from the highest to the lowest.</li>\n\t<li>If there is a tie between two scores, both should have the same ranking.</li>\n\t<li>After a tie, the next ranking number should be the next consecutive integer value. In other words, there should be no holes between ranks.</li>\n</ul>\n\n<p>Return the result table ordered by <code>score</code> in descending order.</p>\n\n<p>The result format is in the following example.</p>\n\n<p> </p>\n<p><strong class=\"example\">Example 1:</strong></p>\n\n<pre>\n<strong>Input:</strong> \nScores table:\n+----+-------+\n| id | score |\n+----+-------+\n| 1 | 3.50 |\n| 2 | 3.65 |\n| 3 | 4.00 |\n| 4 | 3.85 |\n| 5 | 4.00 |\n| 6 | 3.65 |\n+----+-------+\n<strong>Output:</strong> \n+-------+------+\n| score | rank |\n+-------+------+\n| 4.00 | 1 |\n| 4.00 | 1 |\n| 3.85 | 2 |\n| 3.65 | 3 |\n| 3.65 | 3 |\n| 3.50 | 4 |\n+-------+------+\n</pre>\n",
"metaData":"{\"mysql\":[\"Create table If Not Exists Scores (id int, score DECIMAL(3,2))\"],\"mssql\":[\"Create table Scores (id int, score DECIMAL(3,2))\"],\"oraclesql\":[\"Create table Scores (id int, score DECIMAL(3,2))\"],\"database\":true,\"name\":\"order_scores\",\"pythondata\":[\"Scores = pd.DataFrame([], columns=['id', 'score']).astype({'id':'Int64', 'score':'Float64'})\"],\"manual\":false,\"postgresql\":[\"Create table If Not Exists Scores (id int, score DECIMAL(3,2))\"],\"database_schema\":{\"Scores\":{\"id\":\"INT\",\"score\":\"DECIMAL(3, 2)\"}}}",