Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribedDefine 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 elseIF

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions