nerdexam
Oracle

1Z0-007 · Question #187

The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) The registrar requested a report listing the students' grade point averages (GPA) sorted from…

The correct answer is F. SELECT student_id, gpa FROM student_grades ORDER BY gpa DESC. Sorted by highest to lowest is DESCENDING order Incorrect answer: A result in ascending order B wrong syntax with SORT keyword C wrong syntax with SORT keyword D default value for ORDER by is in ascending order E wrong syntax with SORT keyword

Restricting and Sorting Data

Question

The STUDENT_GRADES table has these columns:

STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) The registrar requested a report listing the students' grade point averages (GPA) sorted from highest grade point average to lowest. Which statement produces a report that displays the student ID and GPA in the sorted order requested by the registrar?

Options

  • ASELECT student_id, gpa FROM student_grades ORDER BY gpa ASC;
  • BSELECT student_id, gpa FROM student_grades SORT ORDER BY gpa ASC;
  • CSELECT student_id, gpa FROM student_grades SORT ORDER BY gpa;
  • DSELECT student_id, gpa FROM student_grades ORDER BY gpa;
  • ESELECT student_id, gpa FROM student_grades SORT ORDER BY gpa DESC;
  • FSELECT student_id, gpa FROM student_grades ORDER BY gpa DESC;

How the community answered

(39 responses)
  • A
    8% (3)
  • C
    3% (1)
  • D
    13% (5)
  • E
    3% (1)
  • F
    74% (29)

Explanation

Sorted by highest to lowest is DESCENDING order Incorrect answer: A result in ascending order B wrong syntax with SORT keyword C wrong syntax with SORT keyword D default value for ORDER by is in ascending order E wrong syntax with SORT keyword

Topics

#ORDER BY#DESC#sort order#GPA report

Community Discussion

No community discussion yet for this question.

Full 1Z0-007 Practice