Question: In MySql Create a database named Graduate and implement a database schema using these tables. The primary keys are underlined. The foreign keys have the
In MySql\ Create a database named "Graduate" and implement a database schema using these tables. The primary keys are underlined. The foreign keys have the same name as the primary key in another table. The schema should be in the form of an SQL script (i.e., grad.sql).\ GradSchool(GradSchoollD, Name, Address, ContactEmail)\ Student(StudentID, AdvisorID, StudentName, StudentEmail, Major, DOB, GPA)\ Advisor(AdvisorID, AdvisorName, AdvisorEmail)\ StudentApplication(GradSchoollD, StudentID, Date, Status)\ (20 Points) Write and insert five (5) statements into each table above. The insert statements should be in the form of an SQL script (i.e., data.sql).\ (20 Points) Write the following queries. The queries should be in the form of an SQL script (i.e., queries.sql).\ a) Write a query to output all student information.\ b) Write a query to output all students with a GPA above 3.0.\ c) Write a query to output the name of all advisors and the name of the student they advise.\ d) Write a query to output the name of all students and the name of the graduate school to which they have applied.

1. (10 Points) Create a database named "Graduate" and implement a database schema using these tables. The primary keys are underlined. The foreign keys have the same name as the primary key in another table. The schema should be in the form of an SQL script (i.e., grad.sql). GradSchool(GradSchoollD, Name, Address, ContactEmail) Student(StudentID, AdvisorID, StudentName, StudentEmail, Major, DOB, GPA) Advisor(AdvisorID, AdvisorName, AdvisorEmail) StudentApplication(GradSchoolID, StudentID, Date, Status) 2. (20 Points) Write and insert five (5) statements into each table above. The insert statements should be in the form of an SQL script (i.e., data.sql). 3. (20 Points) Write the following queries. The queries should be in the form of an SQL script (i.e., queries.sql). a) Write a query to output all student information. b) Write a query to output all students with a GPA above 3.0. c) Write a query to output the name of all advisors and the name of the student they advise. d) Write a query to output the name of all students and the name of the graduate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
