Skip to content

Commit a28ebb5

Browse files
authored
Merge pull request #896 from Nabid/patch-1
Added statement when MAX returns NULL
2 parents d115b90 + 9b8b0e4 commit a28ebb5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/t-sql/functions/max-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
title: "MAX (Transact-SQL) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "08/23/2017"
@@ -59,6 +59,8 @@ MAX ( [ ALL | DISTINCT ] expression )
5959

6060
## Remarks
6161
MAX ignores any null values.
62+
63+
MAX returns NULL when there is no row to select.
6264

6365
For character columns, MAX finds the highest value in the collating sequence.
6466

0 commit comments

Comments
 (0)