exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 258 discussion

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

Examine the description of the EMPLOYEES table:



Which query is valid?

  • A. SELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id;
  • B. SELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id, join_date;
  • C. SELECT dept_id, MAX(AVG(salary)) FROM employees GROUP BY dept_id;
  • D. SELECT dept_id, AVG(MAX(salary)) FROM employees GROUP BY dept_id;
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
JayaprasanthGurunathan
1 week, 3 days ago
Selected Answer: B
Aggregate Functions Rule: You cannot nest aggregate functions like MAX(AVG()) or AVG(MAX()).
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