Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Exam 1z0-061 topic 2 question 46 discussion

Actual exam question from Oracle's 1z0-061
Question #: 46
Topic #: 2
[All 1z0-061 Questions]

Examine the structure of the MARKS table:
Exhibit:

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

  • A. SELECT student_name, subject1 FROM marks WHERE subject1 > AVG(subject1);
  • B. SELECT student_name, SUM(subject1) FROM marks WHERE student_name LIKE 'R%';
  • C. SELECT SUM(subject1+subject2+subject3) FROM marks WHERE student_name IS NULL;
  • D. SELECT SUM(DISTINCT NVL(subject1, 0)), MAX(subject1) FROM marks WHERE subject1 > subject2;
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
hggz
4 years, 11 months ago
CD is correct
upvoted 3 times
qayaza
4 years, 6 months ago
A fails because it has an Aggregate Function in the WHERE clause B fails because it has a single column and an Aggregate Function in the SELECT clause but then it does not include a GROUP BY clause on the single column.
upvoted 2 times
...
...
Sugar
5 years, 1 month ago
All will run successfully
upvoted 2 times
duongvietnam
5 years ago
i think so :))))
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 ...