Skip to main contentSkip to solution

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question