StudentCode、SubjectCode、およびMarks列を持つ表を作成して、生徒の年末マークを記録します。 この表には、さまざまな科目で50人の生徒が得た印があります。
次の要件が満たされていることを確認する必要があります。
学生は平均マークに基づいてランク付けする必要があります。
1人または複数の生徒が同じ平均を持つ場合、作成された順序に基づいて増分ランクを与えなければなりません。
ランクは、間にギャップを置かずに連続していなければなりません。
どのTransact-SQLクエリを使用しますか?


正解:C
The ROW_NUMBER numbers the output of a result set. More specifically, returns the sequential number of a row within a partition of a result set, starting at 1 for the first row in each partition.
References: https://docs.microsoft.com/en-us/sql/t-sql/functions/row-number-transact-sql?view=sql-server-2017