Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 (?) , you can switch to a simple comment.
Switch to a voting comment New
9ramone7
1 month, 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
4 months ago
Selected Answer: A
A for me
upvoted 1 times
...
Ramunele
8 months ago
D is not correct, because Turner is last in the table. A is correct answer
upvoted 3 times
...
sunilrajusb
8 months, 3 weeks ago
D also correct answer,, Tested and its giving expected output
upvoted 3 times
Misi_Oracle
1 week, 6 days 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 ...