asc
relationalai.semantics.std.aggregates
asc(*args: AggValue) -> OrderingSpecify ascending order for values in sorting and ranking operations.
Parameters
(*argsAggValue, default:()) - Values to sort in ascending order.
Returns
Ordering- AnOrderingobject representing ascending order.
Examples
Rank employees by salary in ascending order:
select(Employee, aggregates.rank(aggregates.asc(Employee.salary)))Referenced By
RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works ├── Build a semantic model │ └── Query a model │ └── Rank and select top results withrank,asc,desc, andtop└── Use advanced reasoning > Rules-based reasoning └── Aggregate and group data └── Rank groups with.rank()