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

Consider the following database and answer the questions below.
STUDENT
STUDENT
\table[[ST ID,ST_NAME],[7007,James Bond],[1313,Susan Brown],[5050,Susan Smith],[8989,Megan Black]]
COURSE
\table[[COURSE_ID,COURSE_TITLE,CREDIT_HR],[COMP302,Database Systems,3],[COMP203,Computer Organization,4],[COMP206,Data Structures,4],[COMP442,Advanced Database Systems,3]]
ENROLLMENT
\table[[ST ID,COURSE_ID,GRADE],[7007,COMP203,A +],[7007,COMP206,A+],[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
Select $
From STUDENT
Where ST_ID in (Select ST_ID
From ENROLLMENT)
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.
2
 Consider the following database and answer the questions below. STUDENT STUDENT

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!