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

Explanation:



Leave a Reply 4

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


Livia

Livia

I think it’s A. Since Upper returns the whole string in uppercase, it should be “Abigail PA”.
I may be wrong, so if you have a different opinion, please explain.

Giovanni Amorim

Giovanni Amorim

B is the correct. The outer function is INITCAP, then the UPPER inner function will be replaced by it. Then the result will be “Abigail Pa” and not “Abigail PA”.

leo

leo

al tener -LENGTH hace comenzar de derecha a izquierda 5 espacios despuĂ©s el substr pide avanzar 2 espacios y por Ăștlimo el INITCAP hace colocar solo “P” mayuscula y “a” minuscula

Livia

Livia

Thank you, Giovanni. You are right.