How to Use the RIGHT() Function in SQL Server: A Comprehensive Guide

Rumman Ansari   Software Engineer   2024-07-21 09:35:59   5758  Share
Subject Syllabus DetailsSubject Details
☰ TContent
☰Fullscreen

Table of Content:

Syntax:


RIGHT(Character_Expression, Integer_Expression)

Returns the specified number of characters from the right hand side of the given character expression.

Code:

 Select RIGHT('ABCDE', 3)


Output:

The above code will produce the following result-


 CDE



Stay Ahead of the Curve! Check out these trending topics and sharpen your skills.