Question: Part2- Instructions: Serial Transactions [5 Marks] Among databases, only Central db was modified. The Central Database was given a new table: Central_Course_Size. This table satisfies
![Part2- Instructions: Serial Transactions [5 Marks] Among databases, only Central db](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f90d7ad059d_94666f90d7a5c815.jpg)

Part2- Instructions: Serial Transactions [5 Marks] Among databases, only Central db was modified. The Central Database was given a new table: Central_Course_Size. This table satisfies a further requirement about course sizes, and is given the attribute CourseNo, which is its primary key, and CapSize, which lists the size limit of the course. Write a program in the PL/Sql environment to complete the code below: SET serveroutput on; DECLARE 1 " Student changing classes " movingstudent int; I Classes size information */ caplimit int currentSize int; BEGIN I" Select student that wants to change departments such as John*/ r* Finds the class size and class limit of some engineering course such as 203% If (currentSize >= caplimit) THEN " do not let the student change departments if course has enough capacity"I ELSE "drop the student's science courses if leaving the department"/ move the student from the science database to the engineering database *l I" add the student into some engineering courses */ END IF; dbms_output.put_line('Finished'); END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
