#CSUF-CPSC-335-Project
#University Database
Team Member:
Alex Ho hho114@csu.fullerton.edu
Marco Chavez mchavez25@csu.fullerton.edu
Caesar Mier caesarmier@csu.fullerton.edu
Project Description
Our project uses the following queries to scan the database for relevant information.
- Part A)
SELECT course_title, section_class_room, section_meeting_day, section_beginning_day, section_ending_day
FROM Course, Section, Professor
WHERE prof_id = '$prof_ssn' AND prof_id = section_prof_id AND course_id = section_course_id
- Part B)
SELECT DISTINCT enroll_grade, course_title, Count(enroll_grade) as 'Count'
FROM Course , Section , Enrollment
WHERE course_id = section_course_id
AND enroll_section_id = section_id
AND course_id = '$course_id' AND section_id = '$section_id' GROUP BY enroll_grade
- Part A)
SELECT course_id, course_title, section_id, section_class_room, section_meeting_day,
section_beginning_day, section_ending_day, (section_amount_of_seat-COUNT(enroll_stu_cwid)) as 'num_enrolled'
FROM Course, Enrollment, Section
WHERE enroll_section_id = section_id
AND course_id = section_course_id
AND course_id = '$course_id' GROUP BY section_id
- Part B)
SELECT course_title, enroll_grade
FROM Enrollment, Course, Section, Student
WHERE stu_cwid = enroll_stu_cwid AND enroll_section_id = section_id
AND section_course_id = course_id AND enroll_stu_cwid = '$stu_id'