exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 132 discussion

Actual exam question from Oracle's 1z0-071
Question #: 132
Topic #: 1
[All 1z0-071 Questions]

The CUSTOMERS table has a CUST_CREDIT_LIMIT column of data type number.

Which two queries execute successfully? (Choose two.)

  • A. SELECT NVL2(cust_credit_limit * .15, 'Not Available') FROM customers;
  • B. SELECT NVL2(cust_credit_limit, TO_CHAR(cust_credit_limit * .15), 'Not Available') FROM customers
  • C. SELECT NVL(cust_credit_limit * .15, 'Not Available') FROM customers;
  • D. SELECT NVL(TO_CHAR(cust_credit_limit * .15), 'Not Available') FROM customers;
  • E. SELECT TO_CHAR(NVL(cust_credit_iimit * .15, 'Not Available')) FROM customers;
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️
Community vote distribution
BD (100%)

Comments

Chosen Answer:
This is a voting comment. You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
yaya32
7 months, 3 weeks ago
Selected Answer: BD
BD correct -> Data type has to be the same for NVL but not for NVL2
upvoted 1 times
...
zouve
1 year, 2 months ago
Selected Answer: BD
BD tested
upvoted 2 times
zouve
1 year, 2 months ago
A: ORA-00909: invalid number of arguments C: ORA-01722: invalid number E: ORA-01722: invalid number
upvoted 3 times
...
...
kesammy9
1 year, 6 months ago
Selected Answer: BD
NVL2 requires 3 arguments and it doesnt have to be the same data type NVL requires 2 arguments and it must be the same datatype or something that is implicitly converted
upvoted 2 times
karols32
1 year, 4 months ago
NVL2(STH,1,'X') - doesn't work, needs same or converted data type, but reverse order of parameters works. You can't use NUMBER before VARCHAR in NVL2.
upvoted 1 times
mrcsp
7 months ago
NVL2(STH,1,'X') does not work because 'X' cant be converted to a number, if it was '1' like NVL2(STH,1,'1') it works.
upvoted 1 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SC-400
Brisbane, 1 minute ago