Question: SQLite help: Find the students whose quarterly GPA has gone up every quarter they have been enrolled (their GPA in each quarter is strictly higher

SQLite help: Find the students whose quarterly GPA has gone up every quarter they have been enrolled (their GPA in each quarter is strictly higher than their GPA in previous quarters). Recall that students may have gaps in enrollment. Hint: It may be helpful to observe that the order of occurrence of quarters in a given calendar year is in reverse alphabetical order (W > S > F). For example, the quarters occurring in 2016 are, in chronological order, W, S and F.
This is an individual assignment. Please review the academic integrity policy and contact the instructor or TA if you have any questions. The university registrar database has the following schema: student: sid (string course: cid (string) prerequisite: cid (string), pre cid (string) record: sid (string), cid (string), qtr (string), year (integer), grade (integer) Relation student provides the ids of all students enrolled in the university, and course provides all offered courses. Relation prerequisite provides the prerequisites pre_cid for each course cid. Relation record indicates which courses were taken by each student in a given year and quarter (F, W, S), and the grade obtained (for simplicity, grades are provided as integers 4, 3, 2, 1, 0, corresponding to A, B, C, D, F). Assume that a class can only be taken once. Note that students may have gaps in enrollment, i.e. they need not take courses every quarter. In addition, the following hold: . sid is the primary key of student cid is the primary key of course {cid, pre-cid) is the primary key of prerequisite; cid and pre cid are foreign keys referencing course . {sid, cid, qtr, year) is the primary key of record (so grades are unique for each course taken by a student in a given year and quarter), sid is a foreign key referencing student and cid is a foreign key referencing course 6. Find the students whose quarterly GPA has gone up every quarter they have been enrolled (their GPA in each quarter is strictly higher than their GPA in previous quarters). Recall that students may have gaps in enrollment. Hint: It may be helpful to observe that the order of oc- currence of quarters in a given calendar year is in reverse alphabetical order (W' > 'S' > 'F'). For example, the quarters occurring in 2016 are, in chronological order, W, S and F. This is an individual assignment. Please review the academic integrity policy and contact the instructor or TA if you have any questions. The university registrar database has the following schema: student: sid (string course: cid (string) prerequisite: cid (string), pre cid (string) record: sid (string), cid (string), qtr (string), year (integer), grade (integer) Relation student provides the ids of all students enrolled in the university, and course provides all offered courses. Relation prerequisite provides the prerequisites pre_cid for each course cid. Relation record indicates which courses were taken by each student in a given year and quarter (F, W, S), and the grade obtained (for simplicity, grades are provided as integers 4, 3, 2, 1, 0, corresponding to A, B, C, D, F). Assume that a class can only be taken once. Note that students may have gaps in enrollment, i.e. they need not take courses every quarter. In addition, the following hold: . sid is the primary key of student cid is the primary key of course {cid, pre-cid) is the primary key of prerequisite; cid and pre cid are foreign keys referencing course . {sid, cid, qtr, year) is the primary key of record (so grades are unique for each course taken by a student in a given year and quarter), sid is a foreign key referencing student and cid is a foreign key referencing course 6. Find the students whose quarterly GPA has gone up every quarter they have been enrolled (their GPA in each quarter is strictly higher than their GPA in previous quarters). Recall that students may have gaps in enrollment. Hint: It may be helpful to observe that the order of oc- currence of quarters in a given calendar year is in reverse alphabetical order (W' > 'S' > 'F'). For example, the quarters occurring in 2016 are, in chronological order, W, S and F
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
