Skip to content

Commit bbefcea

Browse files
committed
Add new entity for COALESCE example
1 parent 9be7a7d commit bbefcea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/en/docs/refguide/modeling/domain-model/oql/oql-expression-syntax.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -780,10 +780,10 @@ COALESCE ( expression [ ,...n ] )
780780

781781
#### Examples {#coalesce-expression-examples}
782782

783-
Assume entity `Sales.Customer` entity now has some `NULL` values:
783+
Assume entity `Sales.CustomerInfo` entity now has some `NULL` values:
784784

785785
```sql
786-
SELECT * FROM Sales.Customer
786+
SELECT * FROM Sales.CustomerInfo
787787
```
788788

789789
| ID | LastName | FirstName | Age | TotalOrderAmount |
@@ -794,7 +794,7 @@ SELECT * FROM Sales.Customer
794794
Selecting a non-null name for a customer, ignoring if it is the first name or last name, can be done with `COALESCE`:
795795

796796
```sql
797-
SELECT COALESCE(LastName, FirstName) AS Name FROM Sales.Customer
797+
SELECT COALESCE(LastName, FirstName) AS Name FROM Sales.CustomerInfo
798798
```
799799

800800
| Name |
@@ -808,7 +808,7 @@ If all arguments have different numeric types, the data type of the expression r
808808
SELECT
809809
COALESCE(Age, TotalOrderAmount) AS AgeOrAmount,
810810
COALESCE(TotalOrderAmount, Age) AS AmountOrAge,
811-
FROM Sales.Customer
811+
FROM Sales.CustomerInfo
812812
```
813813

814814
| AgeOrAmount (type: Decimal) | AmountOrAge (type: Decimal²) |
18.7 KB
Loading

0 commit comments

Comments
 (0)