Merge pull request #20625 from Taschenbergerm/patch-1

Update argmax.md
This commit is contained in:
Maksim Kita 2021-02-23 13:46:11 +03:00 committed by GitHub
commit 468dd76595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,15 +52,15 @@ Input table:
Query: Query:
``` sql ``` sql
SELECT argMax(user, salary), argMax(tuple(user, salary)) FROM salary; SELECT argMax(user, salary), argMax(tuple(user, salary), salary), argMax(tuple(user, salary)) FROM salary;
``` ```
Result: Result:
``` text ``` text
┌─argMax(user, salary)─┬─argMax(tuple(user, salary))─┐ ┌─argMax(user, salary)─┬─argMax(tuple(user, salary), salary)─┬─argMax(tuple(user, salary))─┐
│ director │ ('director',5000) │ │ director │ ('director',5000) │ ('director',5000)
└──────────────────────┴─────────────────────────────┘ └──────────────────────┴─────────────────────────────────────┴─────────────────────────────
``` ```
[Original article](https://clickhouse.tech/docs/en/sql-reference/aggregate-functions/reference/argmax/) <!--hide--> [Original article](https://clickhouse.tech/docs/en/sql-reference/aggregate-functions/reference/argmax/) <!--hide-->