Skip to content

Commit d226b34

Browse files
committed
fix: outputs
1 parent 4758695 commit d226b34

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/en/sql-reference/20-sql-functions/07-aggregate-functions/aggregate-arg-min.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@ ARG_MIN(<arg>, <val>)
1313
## Arguments
1414

1515
| Arguments | Description |
16-
|-----------|---------------------------------------------------------------------------------------------------|
16+
| --------- | ------------------------------------------------------------------------------------------------- |
1717
| `<arg>` | Argument of [any data type that Databend supports](../../00-sql-reference/10-data-types/index.md) |
1818
| `<val>` | Value of [any data type that Databend supports](../../00-sql-reference/10-data-types/index.md) |
1919

2020
## Return Type
2121

2222
`arg` value that corresponds to minimum `val` value.
2323

24-
matches `arg` type.
24+
matches `arg` type.
2525

2626
## Example
2727

2828
Let's create a table students with columns id, name, and score, and insert some data:
29+
2930
```sql
3031
CREATE TABLE students (
3132
id INT,
@@ -41,14 +42,16 @@ INSERT INTO students (id, name, score) VALUES
4142
```
4243

4344
Now, we can use ARG_MIN to find the name of the student with the lowest score:
45+
4446
```sql
4547
SELECT ARG_MIN(name, score) AS student_name
4648
FROM students;
4749
```
4850

4951
Result:
52+
5053
```sql
5154
| student_name |
5255
|--------------|
53-
| Charlie |
54-
```
56+
| Bob |
57+
```

0 commit comments

Comments
 (0)