1z0-071 Exam QuestionsBrowse all questions from this exam

1z0-071 Exam - Question 228


Examine these statements which execute successfully:

Both statements display departments ordered by their average salaries.

Which two are true? (Choose two.)

Show Answer
Correct Answer: BCD

Both statements will display departments with no employees, as both selections include 'departments d' which means they will list all departments regardless of whether they have employees or not. Only the second statement will execute successfully if you add E.AVG_SAL to the select list because it uses JOIN and GROUP BY correctly to associate department_id with its average salary.

Discussion

4 comments
Sign in to comment
NB196Options: BC
Feb 25, 2024

B & C are the correct answers

NB196
Feb 28, 2024

Actually, I think C & D are the correct answers

khaleesi89Options: BC
Apr 20, 2024

Correct Answer: BC Tested A->The first select returns ORA-00904 D ->Wrong because both statement have d.* in the select list, so both will display departments with no employees E-> Wrong like D F -> Wrong like A

ogi33Options: DE
Apr 8, 2024

D E tested

ogi33
Apr 8, 2024

sorry F not E

ogi33
Apr 26, 2024

omg of course only B C

ogi33
Apr 26, 2024

finally C D sorry for chaos english english