Skip to content

Commit cde2fe5

Browse files
Update find-the-latest-reported-values-with-ease-using-max_by-and-min_by-aggregations.md
1 parent a159412 commit cde2fe5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

find-the-latest-reported-values-with-ease-using-max_by-and-min_by-aggregations.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ group by all;
3939
|Anna|8|
4040

4141

42+
### Query explaination
43+
4244
`max_by(returned_value, maximized_value)` and `min_by(returned_value, minimized_value)` return the value of the first column for which the value of the second column is maximized or minimized. If multiple rows maximize or minimize the result of the second column, the output will be non-deterministic.
4345

4446
## Advaced example

0 commit comments

Comments
 (0)