Question:

What is the output of the following SQL query? \[ \text{mysql} \,>\, \text{SELECT RIGHT("PRAYGRAJ", 3);} \]

Show Hint

The RIGHT() function extracts a specified number of characters starting from the right of the string.
Updated On: Apr 24, 2025
  • PRA
  • PRAYAG
  • RAJ
  • PRAYAGRAJ
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The RIGHT() function in SQL is used to return the specified number of characters from the right side of the string. In this case, the query selects the last 3 characters from the string "PRAYGRAJ", which are "RAJ".
Was this answer helpful?
0
0