Name: Jeffrey P Tilad JR Date: Section: Bsis Score: Week: 7
Name: Jeffrey P Tilad JR Date: Section: Bsis Score: Week: 7
Table Student
Table Course
CourseID CourseName
C1 BSIS
C2 BSCRIM
C3 BPA
C4 BSE
Write the result table of the following SQL queries using Student and Course table
above.
1. Select * From Student where CourseID= (Select CourseID From Course where
CourseName=’BSIS’).
ANSWER:
StudID LName FName Sex MonthlyAllowanc CourseID
e
S1 John White M 3000 C1
S4 Mary Howe F 1000 C1
ANSWER:
ANSWER:
4. Select * From Student where CourseID IN (Select CourseID From Course where
CourseID IN (Select CourseID From Course where CourseName IN
(‘BSIS’,’BSCRIM’,’BPA’))).
ANSWER: