exam questions

Exam 1z0-051 All Questions

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

Exam 1z0-051 topic 1 question 89 discussion

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

See the Exhibit and examine the structure and data in the INVOICE table:
Exhibit:

Which two SQL statements would execute successfully? (Choose two.)

  • A. SELECT MAX(inv_date),MIN(cust_id)FROM invoice;
  • B. SELECT AVG(inv_date-SYSDATE),AVG(inv_amt)FROM invoice;
  • C. SELECT MAX(AVG(SYSDATE-inv_date))FROM invoice;
  • D. SELECT AVG(inv_date)FROM invoice; AB
Show Suggested Answer Hide Answer
Suggested Answer: Explanation 🗳️

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
tech_nine
3 years, 3 months ago
Selected Answer: AB
A and B execute successfully. Incorect answers: C) Can't use nested group function without GROUP BY D) AVG function works with numbers only, passed type is date. Inconsistent datatypes error is produced Tested on Oracle Database 19c
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 ...