In what possible way/method using sql query to have this kind of result.
Ranking the judges scores to each contestants, sorting the finalist showing the final ranking.
This @Prince Jea, given a solution but its not the actual result that I have been expecting, although its correct. Still, im looking for desired output.
SQL QUERY
SELECT ContestantID,JudgeID,ScorePoints,
RANK() OVER (ORDER BY ScorePoints DESC) AS xRank,
DENSE_RANK() OVER (ORDER BY ScorePoints DESC) AS fRank
FROM
(
SELECT ContestantID , ScorePoints, JudgeID
FROM Score
) AS a
ORDER BY 1
Result
I have prefer some materials on SQL Fiddle http://www.sqlfiddle.com/#!6/30d03/2