Write a Stored Procedure for the MySQL homework database

Write a Stored Procedure for the MySQL homework database called DeansListParam that accepts a floating-point number as a parameter and returns all the student names and GPA with a grade point average that is equal to or greater than the IN parameter. Do not use dollar signs as temporary delimiters.

homework database:

create table dept

(

    deptName varchar(25) not null

        primary key,

    numPhDs  decimal(3) default 0

);

 

create table course

(

    cno        decimal(9)  not null,

    courseName varchar(50) default NULL,

    deptName   varchar(25) not null

        references dept,

    primary key (cno, deptName)

);

 

create table prof

(

    profName varchar(30) not null

        primary key,

    deptName varchar(25) default NULL

        references dept

);

 

create table section

(

    deptName varchar(25) not null

        references dept,

    cno      decimal(9)  not null

        references course (cno),

    sectno   decimal(3)  not null,

    profName varchar(30) default NULL

        references prof,

    primary key (deptName, cno, sectno)

);

 

create table student

(

    sid         decimal(9) not null

        primary key,

    studentName varchar(30)   default NULL,

    gpa         decimal(3, 2) default NULL

);

 

create table enroll

(

    sid      decimal(9)  not null

        references student,

    grade    decimal(3, 2) default NULL,

    deptName varchar(25) not null,

    cno      decimal(9)  not null,

    sectno   decimal(3)  not null,

    primary key (sid, deptName, cno, sectno),

    foreign key (deptName, cno, sectno) references section

);

 

create table major

(

    deptName varchar(25) not null

        references dept,

    sid      decimal(9)  not null

        references student,

    primary key (deptName, sid)

);

 

 

Stressed over that homework?

Essay deadline breathing down your neck?

Let’s cut to the chase: Why struggle when you can ace it with zero hassle?

Whether it’s essays, research papers, or assignments — we’ve got you covered.

✅ Expert writers
✅ 100% original work
✅ No AI tools, just real pros

Stressed about your essay or homework? Get a top-quality custom essay NOW!!! Stop worrying. Start succeeding.

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2020 -2025 GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top