Complete the code to remove spaces from both ends of the string ' hello '.
SELECT [1](' hello ') AS trimmed;
The TRIM function removes spaces from both the left and right ends of a string.
Complete the code to remove spaces only from the left side of the string ' world '.
SELECT [1](' world ') AS left_trimmed;
The LTRIM function removes spaces only from the left (start) of the string.
Fix the error in the code to remove spaces only from the right side of the string ' test '.
SELECT [1](' test ') AS right_trimmed;
The RTRIM function removes spaces only from the right (end) of the string.
Fill both blanks to remove spaces from the left and right sides of the string ' data ' using nested functions.
SELECT [1]([2](' data ')) AS trimmed;
Using LTRIM outside RTRIM removes spaces from right first, then left.
Fill all three blanks to remove a specific character '#' from both ends of the string '#example#' using TRIM syntax.
SELECT TRIM([1] [2] [3] '#example#') AS cleaned;
The syntax TRIM(BOTH '#' FROM string) removes '#' from both ends.