Question: How could one compose a function named get_term_gpa that will return the term GPA for a student given the student's pid and yrtrm as parameters

How could one compose a function named "get_term_gpa" that will return the term GPA for a student given the student's pid and yrtrm as parameters using a GROUP BY function? Then, how would one divide the SUM() by the count(*) for classes taken during that semester to derive that GPA?

Step by Step Solution

3.53 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To compose the function gettermgpa using the GROUP BY function follow these steps Step 1 Create a fu... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!