Exams
Subjects
Classes
Home
Exams
Computer Science
SQL
what is the output of the...
Question:
medium
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.
CUET (UG) - 2023
CUET (UG)
Updated On:
Feb 13, 2026
PRA
PRAYAG
RAJ
PRAYAGRAJ
Show Solution
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".
Download Solution in PDF
Was this answer helpful?
0
Top Questions on SQL
Describe about any two DML commands of SQL.
Kerala Plus Two(Class 12) - 2026
Computer Science
SQL
View Solution
Briefly explain about any two column constraints used in SQL.
Kerala Plus Two(Class 12) - 2026
Computer Science
SQL
View Solution
Given the table facts:
\[ \text{facts (D1, D2, val)} \] with the following data:
Consider the following SQL query:
What is the total number of rows produced?
GATE DA - 2025
Data Science and Artificial Intelligence
SQL
View Solution
On a relation named Loan of a bank:
GATE DA - 2025
Data Science and Artificial Intelligence
SQL
View Solution
Want to practice more? Try solving extra ecology questions today
View All Questions
Questions Asked in CUET (UG) exam
Find the ratio of de-Broglie wavelengths of deuteron having energy E and \(\alpha\)-particle having energy 2E :
CUET (UG) - 2026
Dual nature of radiation and matter
View Solution
What is the IUPAC name of [Pt(NH\(_3\))\(_2\)Cl\(_2\)]?
CUET (UG) - 2025
Coordination chemistry
View Solution
A and B together can complete a task in 10 days. A alone can finish it in 15 days. In how many days can B alone finish the work?
CUET (UG) - 2025
Time and Work
View Solution
The atomic number of Lanthanum is 57. Its electronic configuration will be ......
CUET (UG) - 2025
General Chemistry
View Solution
Choose the word that best fits the blank in the sentence below: "Despite his remarks, the audience found his ideas intriguing and thought-provoking."
CUET (UG) - 2025
Vocabulary
View Solution