Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

How can you improve WAN performance?

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago