Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-071 Topic 5 Question 78 Discussion

Actual exam question for Oracle's 1Z0-071 exam
Question #: 78
Topic #: 5
[All 1Z0-071 Questions]

Examine the description of the EMPLOYEES table:

NLS_DATE FORMAT is DD-MON-RR.

Which two queries will execute successfully?

Show Suggested Answer Hide Answer
Suggested Answer: A, C

Contribute your Thoughts:

Refugia
2 months ago
The NLS_DATE_FORMAT is an important detail. It's good that the question specifies the date format, otherwise I might have gotten the date comparisons wrong.
upvoted 0 times
Leatha
1 months ago
Query D will execute successfully.
upvoted 0 times
...
Glory
1 months ago
Query B and Query D will execute successfully.
upvoted 0 times
...
Gabriele
1 months ago
Query A and Query D will execute successfully.
upvoted 0 times
...
...
Kiley
2 months ago
Haha, I'm gonna choose option C just to see what kind of weird result I get. Maybe it'll summon the SQL gods or something.
upvoted 0 times
...
Daniel
2 months ago
E is definitely wrong, you can't group by salary alone. That would give you the average of the maximum salary for each unique salary value, which doesn't make much sense.
upvoted 0 times
Miesha
2 months ago
C) SELECT dept id, MAX (SUM(salary)) FROM employees GROUP BY dept_id;
upvoted 0 times
...
Ines
2 months ago
A) SELECT dept_ id, AVG (MAX(salary)) FROM employees GROUP By dept_id HAVING hire_date> ' O1-JAN-19';
upvoted 0 times
...
...
Goldie
2 months ago
I think A and C are incorrect because they have some syntax errors. A is trying to use MAX() with AVG(), and C is trying to use SUM() with MAX().
upvoted 0 times
...
Marlon
2 months ago
The correct answers are B and D. B calculates the average of the maximum salaries for each department, and D calculates the sum of salaries for employees hired after January 1, 2019 for each department.
upvoted 0 times
...
Mitzie
2 months ago
I'm not sure about option D. I think option B might also be correct because it groups by dept_id and salary.
upvoted 0 times
...
Clorinda
3 months ago
I agree with Mirta. Option A and D seem to be the correct queries based on the description of the table.
upvoted 0 times
...
Mirta
3 months ago
I think option A and D will execute successfully.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77