ICS324-Database Systems Fall Semester 071 Quiz # 2 A Consider the following relations:

advertisement
ICS324-Database Systems
Fall Semester 071
Quiz # 2 A
ID:
Name:
Consider the following relations:
STUDENT
REPORT
SID
SID
Name
Major
CN
Grade
COURSE CN Name Hours
Specify each of the following in SQL:
Question # 1 [7 points]
Retrieve the students (SID and name) and how many courses completed by each student.
Question # 2 [7 points]
Retrieve the students (SID) who took only one course.
Question # 3 [7 points]
Retrieve the major that has the highest number of students.
Download