1. Left() Function :
In MS Access the Left() function extract the string from the left of the string. In Left() function The string and the no of the string will be passed. And it will return the string of size the pass number from the left of the string.
Syntax :
Left(string, number_of_chars)
Example-1 :
SELECT Left("GEEKSFORGEEKS", 3) AS ExtractString;
Output –
| ExtractString |
|---|
| GEE |
Example-2 :
SELECT Left("GEEKSFORGEEKS", 10) AS ExtractString;
Output –
| ExtractString |
|---|
| GEEKSFORGE& |
2. Right() Function :
The Right() function works like Left() function but it extracts the string from the right end of the string. In this, the string and the size of the string that will be extracted will pass as a parameter.
Syntax :
Right(string, number_of_chars)
Example-1 :
SELECT Right("GEEKSFORGEEKS", 4) AS ExtractString;
Output –
| ExtractString |
|---|
| EEKS |
Example-2 :
SELECT Right("GEEKSFORGEEKS", 8) AS ExtractString;
Output –
| ExtractString |
|---|
| FORGEEKS |
Recommended Posts:
- Difference between Left, Right and Full Outer Join
- Left join and Right join in MS SQL Server
- SQL | Join (Inner, Left, Right and Full Joins)
- Hex() and Oct() Function Function in MS Access
- SLN() and SYD() Function Function in MS Access
- DDB () and FV() Function Function in MS Access
- Val() and Sum() Function in MS Access
- Sgn() and Sqr() function in MS Access
- StrConv() and StrReverse() Function in MS Access
- Chr() and Asc() Function in MS Access
- InStr() and InstrRev() Function in MS Access
- LCase() and UCase () Function in MS Access
- Str() and StrComp() Function in MS Access
- Replace() and Space() Function in MS Access
- Exp() and Count() Function in MS Access
- Mid() and Len() Function in MS Access
- LTrim() and RTrim() Function in MS Access
- Rnd() and Round Function in MS Access
- Max() and Min() function in MS Access
- Fix() and Format() Function in MS Access
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

