What would be the outcome?

In the CUSTOMERS table, the CUST_CITY column contains the value ‘Paris’ for the
CUST_FIRST_NAME ‘ABIGAIL’.
Evaluate the following query:

What would be the outcome?

In the CUSTOMERS table, the CUST_CITY column contains the value ‘Paris’ for the
CUST_FIRST_NAME ‘ABIGAIL’.
Evaluate the following query:

What would be the outcome?

A.
Abigail PA

B.
Abigail Pa

C.
Abigail IS

D.
an error message



Leave a Reply 6

Your email address will not be published. Required fields are marked *


Argha

Argha

Select INITCAP(‘ABIGIL’ ||”||UPPER (SUBSTR(‘Paris’,-LENGTH(‘Paris’),2)) )from dual
>> Abigilpa

Only A is in capital letter

Argha

Argha

B is not the correct answer in ‘P’ is in CAPS

Sagar

Sagar

B is the correct answer. Please check the following query:

Select Initcap(‘ABIGAIL’ || ‘ ‘ || Upper(Substr(‘Paris’, – Length(‘Paris’), 2))) From Dual; –> Abigail Pa

As there is a space between name & city, both the values will be converted into Initial Capital mode.

riccia

riccia

The parenthesis enclosed the expression,Initcap is applied to all the statement.

prince jain

prince jain

select upper( substr(‘Paris’ ,-length(‘Paris’) ,2 )) from dual

returns :PA … INITSTR function convert to pa

JTS

JTS

B is correct because initcap enclose all ..