exam questions

Exam 1z0-082 All Questions

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

Exam 1z0-082 topic 1 question 112 discussion

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

Which two queries execute successfully? (Choose two.)

  • A. SELECT NULLIF(NULL, 100) FROM DUAL;
  • B. SELECT NULLIF(100, 'A') FROM DUAL;
  • C. SELECT COALESCE(100, 'A') FROM DUAL;
  • D. SELECT COALESCE(100, NULL, 200) FROM DUAL;
  • E. SELECT NULLIF(100, 100) FROM DUAL;
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Oracle2020
3 months, 1 week ago
D, E confirmed
upvoted 1 times
Oracle2020
3 months, 1 week ago
NULLIF must have the same data type, not use number and string in the same expression. COALESCE returns the first non-null value of the expression, but without using numbers and string.
upvoted 1 times
...
...
hezzy
5 months, 2 weeks ago
D and E .Confirmed.
upvoted 1 times
...
auwia
1 year ago
Selected Answer: DE
D and E are correct.
upvoted 2 times
...
RaNik69
1 year, 1 month ago
Selected Answer: DE
D E is correct. Easy to test
upvoted 2 times
...
BeomK
1 year, 2 months ago
D,E is correct A. ORA-00932: inconsistent datatypes: expected - got CHAR B. ORA-00932: inconsistent datatypes: expected NUMBER got CHAR C. ORA-00932: inconsistent datatypes: expected NUMBER got CHAR D. SQL> SELECT COALESCE(100, NULL, 200) FROM DUAL; COALESCE(100,NULL,200) ---------------------- 100 E. SQL> SELECT NULLIF(100, 100) FROM DUAL; NULLIF(100,100) ---------------
upvoted 2 times
...
Bolillo
1 year, 4 months ago
Selected Answer: DE
Tested both
upvoted 3 times
...
ivanadj
1 year, 5 months ago
D and E are correct SQL> SELECT COALESCE(100, NULL, 200) FROM DUAL; COALESCE(100,NULL,200) ---------------------- 100 SQL> SELECT NULLIF(100, 100) FROM DUAL; NULLIF(100,100) ---------------
upvoted 3 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:
SY0-701
London, 1 minute ago