NEW
Font size
WorksheetsCharacter Functions
Total questions: 10
Worksheet time: 6mins
Review this SQL statement:
SELECT SUBSTR('2009',1,2) || LTRIM('1124','1') FROM DUAL;
What will be the result of the SQL statement?
2024
221
20124
A syntax error
UPPER ( LOWER ("HELLO world"))
Output of the above function call is:
HELLO world
hello WORLD
HELLO WORLD
hello world
Output for the following function call is:
SELECT INITCAP('I have just-now reaCHed 7th floor of my home:my destination') from DUAL;
I Have Just-now Reached 7th Floor Of My Home:my Destination
I Have Just-Now Reached 7th Floor Of My Home:My Destination
I Have Just-Now ReaCHed 7Th Floor Of My Home:My Destination
I Have Just-now ReaCHed 7Th Floor Of My Home:my Destination
What will be the output of the following question?
SELECT SUBSTR('I LOVE MY INDIA',3,5) FROM DUAL;
LOVE
VE MY
LOVE M
None of the above
Assuming Database is using a 2 Byte Character Set, What will be the output of the following Query?
SELECT LENGTHB('I AM A NISTIAN') FROM DUAL;
14
28
7
None of the above
What will be the output of the following Query?
SELECT INSTR('NISTIAN ROCKS','i',3,1) FROM DUAL:
0
5
2
None of the above
What is the output for the following query?
SELECT RPAD('INDIAN', 4, '.' ) FROM DUAL;
INDIAN....
....INDIAN
INDI
DIAN
What will be the output of the following query?
SELECT LTRIM('BANDE MATARAM', 'BADM') FROM DUAL;
BANDE MATARAM
NDE MATARAM
NE TR
BANDE MATAR
SELECT REPLACE('EGG FIRST OR HEN','EGH','PT') FROM DUAL
PTG FIRST OR HEN
PTT FIRST OR PN
PTT FIRST OR HPN
ERROR
SELECT SUBSTR('12/11/2019', INSTR('12/11/2019','/',-1,1)+1) FROM DUAL;
2019
019
2020
11/2019
