What will be the output of the following SQL command?
select LTRIM(string) ;
What will be the output of the following SQL command?
select LTRIM(string) ;
Solution
✅ Correct Option: 2
LTRIM() removes leading white spaces, meaning the spaces at the start (left side) of a string. The "L" in LTRIM stands for left.
Option 1: this describes RTRIM(), which removes trailing spaces from the right end.
Option 3: this describes TRIM(), which removes spaces from both ends.
Related questions:
2026: 11 May Shift 2
2026: 31 May Shift 1