Question: STUDENT table [ [ ST ID , ST NAME ] , [ 7 0 0 7 , James Bond ] , [ 1 3

STUDENT
\table[[ST ID,ST NAME],[7007,James Bond],[1313,Susan Brown],[5050,Susan Smith],[8989,Megan Black]]
COURSE
\table[[COURSE_ID,COURSE_ITIL,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]]
e) Write the SQL statement that displays the following report as it appears below.
\table[[Sport,Number of Students],[Basketball,3],[Football,2],[Tennis,1],[Soccer,1]]
f) Write the SQL statement that displays the number of students who play basketball and are enrolled in Database Systems.
g) Consider the following SQL statementExplain in English what this statement means
 STUDENT \table[[ST ID,ST NAME],[7007,James Bond],[1313,Susan Brown],[5050,Susan Smith],[8989,Megan Black]] COURSE \table[[COURSE_ID,COURSE_ITIL,CREDIT_HR],[COMP302,Database Systems,3],[COMP203,Computer

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!