DWH Quiz
DWH Quiz
DWH Quiz
STUDENT ENROLLMENT
StudentID (PK) StudentID (PK) (FK)
FName ClassID (PK) (FK),
LName Grade
Major
1. List the CourseNumber, Section,
Title, and Days taught for all
sections starting at 6:30 PM. Sort
alphabetically by Title.
2. List Section, Days, and Time for all
sections of MIS 3353 that have at
least 15 students enrolled.
3. List the CourseNumber, Title, and
total count of students that meet on
Monday (Days contains the character
M). Group all Monday sections
together for the count.
4. List the Name of all students who do
NOT have a class on Wednesday
(Days = W). List each student only
once.
5. List StudentID for all students who
are TCOM majors and have at most
one grade of A.
1. SELECT course.CourseNumber
, section.Section, course.Title
FROM course, section
WHERE course.CourseNumber =
section.CourseNumber
AND section.Time = ‘6:30 PM’
ORDER BY Title;
SELECT section.Section
,section.Days
,section.Time
FROM section
WHERE course.CourseNumber = ‘MIS
3353’
GROUP BY section.ID
,section.Days
,section.Time
HAVING count(*) >= 15;