exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 111 discussion

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

Examine this partial statement:

SELECT ename, sal, comm FROM emp

Now examine this output:



Which ORDER BY clause will generate the displayed output?

  • A. ORDER BY comm DESC NULLS LAST, ename
  • B. ORDER BY NVL(coram, 0) ASC NULLS FIRST, ename
  • C. ORDER BY NVL(coram, 0) ASC NULLS LAST, ename
  • D. ORDER BY NVL(ccmm, 0) DESC, ename
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
zzz02
3 months, 4 weeks ago
Selected Answer: D
I'd give it D
upvoted 1 times
...
9ramone7
9 months, 1 week ago
Tested on Oracle live sql. A is correct query for the output B comm nulls are at the top - wrong C Turmer, Allen, Ward, Martin at the bottom - wrong D Only Turner at the bottom - wrong
upvoted 1 times
...
yaya32
1 year ago
Selected Answer: A
A for me
upvoted 1 times
...
Ramunele
1 year, 3 months ago
D is not correct, because Turner is last in the table. A is correct answer
upvoted 3 times
...
sunilrajusb
1 year, 4 months ago
D also correct answer,, Tested and its giving expected output
upvoted 3 times
Misi_Oracle
8 months, 2 weeks ago
NVL lets you replace null (returned as a blank) with a string in the results of a query. If expr1 is null, then NVL returns expr2. If expr1 is not null, then NVL returns expr1. Meaning that the output would be replaced by 0. The output still remains as null. https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/NVL.html
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:
SY0-701
London, 1 minute ago