SQL TEST 2 (FUNCTIONS ONLY)

what is result in this query?

SELECT

'ORACLE SQL' STRING,

INITCAP(LOWER(SUBSTR('ORACLE SQL', -4,4))) LOWER

FROM DUAL;


What is result in this query?

SELECT

'ORACLE SQL' STRING,

SUBSTR('ORACLE SQL', 7,-3) SUBSTRING

FROM DUAL;


What is result in this query?

SELECT

'ORACLE' STRING,

LENGTH(SUBSTR('ANIMAL', -3, 15)) RESULT

FROM DUAL;


What is result in this query?

SELECT

'ORACLE SQL' STRING,

LPAD('ORACLE SQL' , 10, '*')

FROM DUAL;


What is result in this query?

SELECT

'SIVARAMUDU' STRING,

LPAD(RPAD('SIVARAMUDU', 01, '-'), 15, '*' ) RESULT

FROM DUAL;


What is result in this query?

SELECT

'SIVARAMUDU' STRING,

LTRIM(LTRIM(LPAD(RPAD('SIVARAMUDU',10), 10), 'RAMUDU'), 'SIVA') RESULT

FROM DUAL;


What is result in this query?

SELECT

TRIM(TRAILING 'R'FROM 'RRRSMITHRRR') RESULT

FROM DUAL;


Which function is used for appling extra charectors to the exising data eaither left side or right side?


What is result in this query?

SELECT

'SALES MAN' STRING,

REPLACE('SALES MAN', 'A', 'E') RESULT

FROM DUAL;


What is syntax of REPLACE function?


What is result in this query?

SELECT

123.456 NUM1,

456.123 NUM2,

ROUND(123.456 +456.123, -3) ROUNDED

FROM DUAL;


What is result in this query?

SELECT

123.456 NUM1,

456.123 NUM2,

TRUNC(123.456 +456.123, -3) RESULT

FROM DUAL;


What is result in this query?

SELECT

123.456 NUM1,

456.123 NUM2,

TRUNC(ROUND(123.456 +456.123, -3),-2) RESULT

FROM DUAL;


What is result in this query?

SELECT

123.456 NUM1,

456.123 NUM2,

ROUND(TRUNC(123.456 +456.123, 3),-2) RESULT

FROM DUAL;


What is result in this query?

SELECT

123.456 NUM1,

456.123 NUM2,

TRUNC(ROUND(123.456 +456.123, 3),-2) RESULT

FROM DUAL;


Which function is finds the Position of a String Within a String?


Default result of PAD function?


SELECT LTRIM(‘Go Wolfpack’, ‘oGfW’)

FROM dual;


Which function is Clips out a Portion of a String?


Which one is Group function?


Which date function is used to find the difference between two dates?


Which function is used to find the largest integer less than or equal to a specific value?


What is the output of the following query?

SELECT TRUNC(1234.5678,-2) FROM DUAL;


What will be the output of the following query?

SELECT REPLACE(TRANSLATE(LTRIM(RTRIM('!! ATHEN !!','!'), '!'), 'AN', '**'),'*','TROUBLE') FROM DUAL;


TRUNCATE TABLE EMP;

DELETE FROM EMP;

Will the outputs of the above two commands differ?
























































































Description:

This is a multiple choice test.
Click the Start Test button below to start.
A question and the possible answer choices appear. Select the choice you find to be the correct answer of the question. Clicking on a choice saves it as your answer for the question.
Use Next and Back buttons to move on to the next or previous question in the test.
There is no negative marking for wrong choices selected.
After you finish the test, click on the End Test button to submit your test and see your scorecard.
You can review your answer also.

Comments

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
Siva Ramudu
Learning SQL, INFORMATICA
User
11 Followers

Your Facebook Friends on WizIQ

More Tests By Author

SQL TEST (FUNCTIONS ONLY)
25 Questions | 247 Attempts

SQL Basics Test
15 Questions | 662 Attempts

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect