@@ -308,7 +308,10 @@ The following aggregates are available in QL:
308
308
309
309
rank[4](int i | i = [5 .. 15] | i)
310
310
311
- Note that the rank indices start at ``1 ``, so ``rank[0](...) `` returns no results.
311
+ .. pull-quote :: Note
312
+
313
+ - Rank indices start at ``1 ``, so ``rank[0](...) `` has no result.
314
+ - ``rank[1](...) `` is the same as ``min(...) ``.
312
315
313
316
.. index :: strictconcat, strictcount, strictsum
314
317
@@ -530,14 +533,21 @@ The query produces these results:
530
533
531
534
+-----------+---------+------+
532
535
| variant | person | cost |
533
- +-----------+---------+------ +
536
+ +===========+=========+====== +
534
537
| default | Alice | 201 |
538
+ +-----------+---------+------+
535
539
| default | Bob | 100 |
540
+ +-----------+---------+------+
536
541
| default | Charles | 100 |
542
+ +-----------+---------+------+
537
543
| default | Diane | 0 |
544
+ +-----------+---------+------+
538
545
| monotonic | Alice | 101 |
546
+ +-----------+---------+------+
539
547
| monotonic | Alice | 200 |
548
+ +-----------+---------+------+
540
549
| monotonic | Bob | 100 |
550
+ +-----------+---------+------+
541
551
| monotonic | Diane | 0 |
542
552
+-----------+---------+------+
543
553
0 commit comments