Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Define a stored procedure named Result that first finds the student who gets the highest average GPA (topAvgGPA) on the courses from CS department. Then,
Define a stored procedure named Result that first finds the student who gets the highest average GPA (topAvgGPA) on the courses from CS department. Then, the procedure should display the grade according to the following criteria:
topAvgGPA>95 ==> display AA;
95topAvgGPA>90 ==> display A;
90topAvgGPA>80 ==> display B;
topAvgGPA80 ==> display C;
Consider the following relations: Define a stored procedure named Result that first finds the student who gets the highest average GPA (topAvgGPA) on the courses from cs department. Then, the procedure should display the grade according to the following criteria: - topAvgGPA>95 ==> display AA; - 95 topAvgGPA> 90==> display A; - 90 topAvgGPA>80 ==> display B; - topAvgGPA 80==> display ; HINT: - Average GPA of a student = SUM(Credits*Score)/SUM(Credits) - You do not need to pass parameters to the procedure. To show the output, just use SELECT grade at the end of the procedure. - To represent "else if", use elseIFStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started