rank_desc
relationalai.semantics.std.aggregates
rank_desc(*args: AggValue) -> AggregateCompute rank in descending order.
Parameters
(*argsAggValue, default:()) - Values to rank in descending order.
Returns
Aggregate- AnAggregaterepresenting the computation of the descending rank. ReturnsInteger.
Examples
Rank students by test score (highest to lowest):
select(Student, aggregates.rank_desc(Student.test_score))