KnowledgeBoat Logo
|

Informatics Practices

What will be returned by the given query?

SELECT RIGHT("LEFT", 2) ; 

SQL Queries

3 Likes

Answer

+------------------+
| RIGHT("LEFT", 2) |
+------------------+
| FT               |
+------------------+

Working

The RIGHT() function in SQL extracts a specified number of characters from the right side of a string. The second parameter, 2, specifies that we want to extract 2 characters from the right end of the string "LEFT". Therefore, the result will be "FT".

Answered By

1 Like


Related Questions