Professional Documents
Culture Documents
Function-1 PracticeEduDB
Function-1 PracticeEduDB
1
EduBD
teaching(subject_id, lecturer_id)
2
EduBD
3
Define a function
1) Given a classID, write a function, named :
number_of_students, that calculates the number of students
in this class.
4
Execute a function with normal role
Define an user role named : joe; pass: 12345678
Check values in this attribute before and after calling the function
update_number_students()
6
Exercices
3) Create a new table to store GPA (float), CPA (float) of students in
each semester
student_results(student_id, semester, GPA, CPA)
Define a function to update GPA, GPA of a student in a semester.
Student_id and semester are input variables ot the function
updateGPA_student(studentid, semester)
Define a function to update GPA, GPA for all students in the semester
indicated by a input variable.
updateGPA(semester)
Check whether your functions work correctly or not