Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following database and answer the questions below. STUDENT table [ [ ST _ ID , ST _ NAME ] , [ 7

Consider the following database and answer the questions below.
STUDENT
\table[[ST_ID,ST_NAME],[7007,James Bond],[1313,Susan Brown],[5050,Susan Smith],[8989,Megan Black]]
\table[[COURSE,CREDIT_HR,],[COURSE_ID,COURSE_TITLE,3],[COMP302,Database Systems,4],[COMP203,Computer Organization,4],[COMP206,Data Structures,3],[COMP442,Advanced Database Systems,3]]
ENROLLMENT
\table[[ST ID,COURSE_ID,GRADE],[7007,COMP203,At],[7007,COMP206,At],[7007,COMP302,A +],[7007,COMP442,],[1313,COMP203,A+],[1313,COMP302,B+],[5050,COMP203,C+],[1313,COMP442,]]
SPORT
\table[[ST ID,SPORT_NAME],[1313,Basketball],[1313,Football],[5050,Basketball],[8989,Basketball],[1313,Tennis],[7007,Soccer],[7007,Football]]
a) Write the SQL statement the displays the names of the students who have enrolled in the Database Systems course
b) Write the SQL statement that displays a list of the students whose names start with 'S'
Select *
From STUDENT
Where ST_NAME =?'S%'
c) Write the SQL statement that displays the Student ID, Student Name, Course ID, and Grade for students that passed at least one course with a grade better than B+(i.e. A-, A, and A+)
Select ST_ID AS studentid, ST_ name As student name, Course ID, Grade From
d) Write the SQL statement that displays the total number of credit hours (one number) for the courses enrolled in by the student with ID 1313.
image text in transcribed

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

Students also viewed these Databases questions