1Z0-007 · Question #74
The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) Which statement finds the highest grade point average (GPA) per semester?
The correct answer is C. SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL GROUP BY semester_end. for highest gpa value MAX function is needed, for result with per semester GROUP BY clause is needed Incorrect answer: A per semester condition is not included B result would not display the highest gpa value D invalid syntax error E invalid syntax error Refer: Introduction to…
Question
The STUDENT_GRADES table has these columns:
STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) Which statement finds the highest grade point average (GPA) per semester?
Options
- ASELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL;
- BSELECT (gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
- CSELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL GROUP BY semester_end;
- DSELECT MAX(gpa) GROUP BY semester_end WHERE gpa IS NOT NULL FROM student_grades;
- ESELECT MAX(gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
How the community answered
(51 responses)- A6% (3)
- B2% (1)
- C75% (38)
- D16% (8)
- E2% (1)
Explanation
for highest gpa value MAX function is needed, for result with per semester GROUP BY clause is needed Incorrect answer: A per semester condition is not included B result would not display the highest gpa value D invalid syntax error E invalid syntax error Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 5-7
Topics
Community Discussion
No community discussion yet for this question.