QuestionQ217

VerifiedReporting Aggregated Data Using the Group Functions

The STUDENT_GRADES table contains these columns:

  • STUDENT_ID. NUMBER(12)
  • SEMESTER_END. DATE -
  • GPA. NUMBER(4, 3)

The registrar requested a report on the average grade point average (GPA), ordered from the highest grade point average to each semester, beginning with the earliest date.

Which statement accomplishes this?

Choose two
Explanation

A descending primary sort on GPA places the highest grade point averages first, and an ascending secondary sort on SEMESTER_END places dates from earliest to latest where GPA values are equal. ASC is Oracle SQL’s default ascending direction. Choices C and E are identical statements and therefore produce the same required ordering.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!