exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 231 discussion

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

Examine the contents of the EMP table:



Examine this query that executes successfully:



What is the result?

  • A. It will return the five employees earning the lowest salaries, in ascending order.
  • B. It will return the six employees earning the highest salaries, in descending order.
  • C. It will return the six employees earning the lowest salaries, in ascending order.
  • D. It will return the five employees earning the highest salaries, in descending order.
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
ArslanAltaf
2 months ago
With Ties - Query would have returned one more row with an equal salary to the last row's salary if that salary number matches. In this case, it didn't so it returns 5 rows only.
upvoted 1 times
...
Arth1989
5 months, 4 weeks ago
A tested. However, what is the meaning of WITH TIES then. If replacing with ONLY returns the same result.
upvoted 1 times
...
zangado
7 months, 1 week ago
Selected Answer: A
The WITH TIES returns additional rows with the same sort key as the LAST row fetched.
upvoted 1 times
...
lucemqy
8 months ago
Selected Answer: A
A is correct
upvoted 1 times
...
Shrimathi
11 months, 3 weeks ago
Option A tested in DB. If the salary contain like the below example: id Salary 1 12000 2 15000 3 16000 4 16000 5 17000 in this case, with ties option return extra rows select id,salary from emp order by salary fetch first 3 rows with ties; o/p: 1 12000 2 15000 3 16000 4 16000
upvoted 2 times
...
WingL
12 months ago
Selected Answer: A
A tested. CREATE TABLE EMP ( ID NUMBER(10), NAME VARCHAR2(10), SALARY NUMBER(10) ) INSERT INTO EMP VALUES (101, 'JOHN', 26000); INSERT INTO EMP VALUES (102, 'NEENA', 24000); INSERT INTO EMP VALUES (103, 'DEHAAN', 12000); INSERT INTO EMP VALUES (104, 'LEX', 17000); INSERT INTO EMP VALUES (105, 'BILL', 18000); INSERT INTO EMP VALUES (106, 'DANIEL', 26000); INSERT INTO EMP VALUES (107, 'BEN', 12000); INSERT INTO EMP VALUES (108, 'GEORGE', 25000); SELECT * FROM EMP ORDER BY SALARY FETCH FIRST 5 ROWS WITH TIES;
upvoted 1 times
...
zouve
1 year ago
Selected Answer: A
A tested
upvoted 1 times
...
CMjer
1 year, 1 month ago
Selected Answer: A
A is correct, checked in DB
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