exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 105 discussion

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

Examine this description of the EMP table:



You execute this query:



What is the result?

  • A. only departments where the total salary is greater than 3000, returned in no particular order
  • B. only departments where the total salary is greater than 3000, ordered by department
  • C. all departments and a sum of the salaries of employees with a salary greater than 3000
  • D. an error
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
andrejshilin16
6 months, 2 weeks ago
Answer D, since in GROUP BY clause must used column names instead positioned numbers like here, like GROUP BY deptno - works fine
upvoted 1 times
...
zouve
1 year, 7 months ago
D ORA-00979: not a GROUP BY expression
upvoted 1 times
...
katsoufis
1 year, 11 months ago
why D? A is correct
upvoted 1 times
Rik92
1 year, 10 months ago
Because the Group by requires all items in the select clause
upvoted 4 times
...
Rik92
1 year, 10 months ago
Correction: One can order by 1 but you have to name the group by columns
upvoted 2 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