1. Write a function to calculate the GPA of a student.

2. Write a trigger to check and enforce the following constraints when a new record is inserted into the course table: The course prerequisite relationship is hierarchical up to three levels.

3. Write a procedure to merge two sections of the same course. All students enrolled in one section will be added into the other section. The empty section will then be dropped. Data about the meeting days and textbooks of the empty section need to be deleted. The section numbers of the sections after the dropped section need to be adjusted accordingly. Note that the number of students enrolled in a section cannot exceed the number of seats of the section by more than 10%.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.