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 63 discussion

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

Examine the description of the EMPLOYEES table:

Which two queries return all rows for employees whose salary is greater than the average salary in their department? (Choose two.)
A.

B.

C.

D.

E.

Show Suggested Answer Hide Answer
Suggested Answer: BE

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ArslanAltaf
2 weeks ago
B & D is correct only. E is not
upvoted 1 times
ArslanAltaf
1 week, 6 days ago
Correction - B, D and E all worked. All tested
upvoted 1 times
ogi33
4 days, 16 hours ago
D execute but gives no corect data
upvoted 1 times
...
...
...
Poke90
1 year, 1 month ago
IN E, the column alias avg_salary from the sub query is used in the WHERE clause of the main query. Is that allowed?
upvoted 2 times
Eltelwany
1 year, 1 month ago
Yes, it is allowed. It follows from the order of the execution. Since the engine would execute the subquery first, it already knows what the alias refers to.
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 ...