Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started