You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/t-sql/functions/right-transact-sql.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ RIGHT ( character_expression , integer_expression )
60
60
### A: Using RIGHT with a column
61
61
The following example returns the five rightmost characters of the first name for each person in the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] database.
62
62
63
-
```
63
+
```sql
64
64
SELECT RIGHT(FirstName, 5) AS'First Name'
65
65
FROMPerson.Person
66
66
WHERE BusinessEntityID <5
@@ -87,7 +87,7 @@ Rob
87
87
### B. Using RIGHT with a column
88
88
The following example returns the five rightmost characters of each last name in the `DimEmployee` table.
89
89
90
-
```
90
+
```sql
91
91
-- Uses AdventureWorks
92
92
93
93
SELECT RIGHT(LastName, 5) AS Name
@@ -109,7 +109,7 @@ lters
109
109
### C. Using RIGHT with a character string
110
110
The following example uses `RIGHT` to return the two rightmost characters of the character string `abcdefg`.
0 commit comments