Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed
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

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

=+ What would it look like? Who should deliver it?

Answered: 1 week ago