The following is a scheme for a database in an object-oriented setting. Every relation becomes a collection of objects. A Student is a person and a Faculty is also a person. These are shown as directed edges labeled "isa". All other directed edges show reference attributes. Note that PreReq attribute in Course is a set of references.

Here is the query I can't figure out how to write:
Reorganize Enrollment collection by StudentID. For each student, retrieve the student's id and a Grade. The Grade should be a relation consisting of CourseCode and LetterGrade attributes.
By re-organize, I am pretty sure it just means retrieve the info in that order, and NOT do any updates to the database.
StudentandFacultyhas an ID field that corresponds to an ID in thePersontable but is not shown in the diagram to keep it concise.