Update argmax.md

This commit is contained in:
Denny Crane 2023-06-05 16:57:42 -03:00 committed by GitHub
parent e37cd36db7
commit 15fcad1909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ select argMax(tuple(a), b) from test;
select (argMax((a, b), b) as t).1 argMaxA, t.2 argMaxB from test;
┌─argMaxA─┬─argMaxB─┐
│ ᴺᵁᴸᴸ │ 3 │ -- you can use Tuple and get both (all - tuple(*) ) columns for the according max(b)
│ ᴺᵁᴸᴸ │ 3 │ -- you can use Tuple and get both (all - tuple(*)) columns for the according max(b)
└─────────┴─────────┘
select argMax(a, b), max(b) from test where a is Null and b is Null;