Advertisements
Advertisements
Question
What will be the output of the following query?
SELECT SUBSTR ("G20 2023 INDIA", 5, 4);
Options
G20 2
2023
INDI
023
MCQ
Solution
2023
Explanation:
'2023', the substring that was taken from the input string, would be the query's result. It extracts four characters ('2023') starting with the fifth letter ('2').
shaalaa.com
Is there an error in this question or solution?