Question: Question 1 - SQL (30%) Consider the following tables named Student and Transcript: Student ID 1 2 3 Name Mary Doe Tom Thumb Bill Brown

 Question 1 - SQL (30%) Consider the following tables named Student

Question 1 - SQL (30%) Consider the following tables named Student and Transcript: Student ID 1 2 3 Name Mary Doe Tom Thumb Bill Brown Status Senior Senior Junior Transcript StudentID Course Semester Year Grade 1 IRM2002 Fall 2019 A- IRM3001 Winter 2018 B+ IRM2002 Fall 2019 A- (a) (15%) Write an SQL query to create the schema for Transcript table. Assume StudentID and Year are integers, Course and Semester are strings with a maximum length of 50 characters, and Grade is a float. Make sure you specify its primary key as the combination of StudentID, Course, and Semester. And be sure that StudentID is a foreign key referencing the ID column in the Student table. Answer: (b) (15%) Write an SQL query that returns the names of senior students who receive a grade higher than 3.0 in IRM2002 during Fall 2019 semester

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!