Skip to content

Commit 5553a5f

Browse files
20210414 1012
1 parent a44fa99 commit 5553a5f

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

docs/t-sql/functions/logical-functions-greatest-transact-sql.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: "Logical Functions - GREATEST (Transact-SQL)"
33
title: "GREATEST (Transact-SQL)"
44
ms.custom: ""
5-
ms.date: "04/09/2021"
5+
ms.date: "04/14/2021"
66
ms.prod: sql
77
ms.prod_service: "database-engine, sql-database"
88
ms.technology: t-sql
@@ -74,14 +74,14 @@ GREATEST ( expression1 [ ,...expressionN ] )
7474
The scale of the return type is determined by the scale of the argument with the highest precedence data type.
7575

7676
```sql
77-
SELECT GREATEST ( '6.62', 3.1415, N'7' ) ASGreatest;
77+
SELECT GREATEST ( '6.62', 3.1415, N'7' ) ASGreatestVal;
7878
GO
7979
```
8080

8181
[!INCLUDE[ssResult](../../includes/ssresult-md.md)]
8282

8383
```
84-
Greatest
84+
GreatestVal
8585
--------
8686
7.0000
8787
@@ -93,14 +93,14 @@ Greatest
9393
The following example returns the maximum value from the list of character constants that is provided.
9494

9595
```sql
96-
SELECT GREATEST ('Glacier', N'Joshua Tree', 'Mount Rainier') ASGreatest;
96+
SELECT GREATEST ('Glacier', N'Joshua Tree', 'Mount Rainier') ASGreatestString;
9797
GO
9898
```
9999

100100
[!INCLUDE[ssResult](../../includes/ssresult-md.md)]
101101

102102
```
103-
Greatest
103+
GreatestString
104104
-------------
105105
Mount Rainier
106106
@@ -116,7 +116,7 @@ USE AdventureWorks2019;
116116
GO
117117

118118
SELECT sp.SalesQuota, sp.SalesYTD, sp.SalesLastYear
119-
, GREATEST(sp.SalesQuota, sp.SalesYTD, sp.SalesLastYear) AS Greatest
119+
, GREATEST(sp.SalesQuota, sp.SalesYTD, sp.SalesLastYear) AS Sales
120120
FROM Sales.SalesPerson AS sp
121121
WHERE sp.SalesYTD < 3000000;
122122
GO
@@ -126,7 +126,7 @@ GO
126126
[!INCLUDE[ssResult](../../includes/ssresult-md.md)]
127127

128128
```
129-
SalesQuota SalesYTD SalesLastYear Greatest
129+
SalesQuota SalesYTD SalesLastYear Sales
130130
131131
--------------------- --------------------- --------------------- ---------------------
132132
NULL 559697.5639 .0000 559697.5639
@@ -200,7 +200,7 @@ GO
200200
[!INCLUDE[ssResult](../../includes/ssresult-md.md)]
201201

202202
```
203-
GreatestPrice
203+
Price
204204
-------------
205205
19.9900
206206
49.9900

docs/t-sql/functions/logical-functions-least-transact-sql.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: "Logical Functions - LEAST (Transact-SQL)"
33
title: "LEAST (Transact-SQL)"
44
ms.custom: ""
5-
ms.date: "04/09/2021"
5+
ms.date: "04/14/2021"
66
ms.prod: sql
77
ms.prod_service: "database-engine, sql-database"
88
ms.technology: t-sql
@@ -74,14 +74,14 @@ LEAST ( expression1 [ ,...expressionN ] )
7474
The scale of the return type is determined by the scale of the argument with the highest precedence data type.
7575

7676
```sql
77-
SELECT LEAST ( '6.62', 3.1415, N'7' ) ASLeast;
77+
SELECT LEAST ( '6.62', 3.1415, N'7' ) ASLeastVal;
7878
GO
7979
```
8080

8181
[!INCLUDE[ssResult](../../includes/ssresult-md.md)]
8282

8383
```
84-
Least
84+
LeastVal
8585
-------
8686
3.1415
8787
@@ -93,14 +93,14 @@ Least
9393
The following example returns the minimum value from the list of character constants that is provided.
9494

9595
```sql
96-
SELECT LEAST ('Glacier', N'Joshua Tree', 'Mount Rainier') ASLeast;
96+
SELECT LEAST ('Glacier', N'Joshua Tree', 'Mount Rainier') ASLeastString;
9797
GO
9898
```
9999

100100
[!INCLUDE[ssResult](../../includes/ssresult-md.md)]
101101

102102
```
103-
Least
103+
LeastString
104104
-------------
105105
Glacier
106106
@@ -116,7 +116,7 @@ USE AdventureWorks2019;
116116
GO
117117

118118
SELECT sp.SalesQuota, sp.SalesYTD, sp.SalesLastYear
119-
, LEAST(sp.SalesQuota, sp.SalesYTD, sp.SalesLastYear) AS Least
119+
, LEAST(sp.SalesQuota, sp.SalesYTD, sp.SalesLastYear) AS Sales
120120
FROM Sales.SalesPerson AS sp
121121
WHERE sp.SalesYTD < 3000000;
122122
GO
@@ -126,7 +126,7 @@ GO
126126
[!INCLUDE[ssResult](../../includes/ssresult-md.md)]
127127

128128
```
129-
SalesQuota SalesYTD SalesLastYear Least
129+
SalesQuota SalesYTD SalesLastYear Sales
130130
--------------------- --------------------- --------------------- ---------------------
131131
NULL 559697.5639 .0000 .0000
132132
250000.0000 1453719.4653 1620276.8966 250000.0000

0 commit comments

Comments
 (0)