SQLAssignment
SQLAssignment
Enroll
Sno Cname Grade
Course
CourseNam CourseTime CourseHall ProfNO
e
Professor
ProfID Pname CollageID
1. Find the names students who are in the first year ( year = 1) and enrolled in a course
taught by professor Smith.
2. Find the age of the oldest student who is either majoring in “Information Systems” OR
enrolled in a course with Professor Smith
3. Find the names of all courses that are held in Hall 202 OR has 12 or more students
enrolled in it.
4. Find the students who have conflicting courses ( تعارضthat has the same timing for
different courses )
5. Find the names of professor who teach all the courses.
6. Find the names of faculty members for whom the combined enrollment of the courses
that they teach is less than 10.
7. For each year level, print the level and the average age of students for that level.
8. For all levels except year 4, print the level and the average age of students for that level
9. Find the names of students enrolled in the maximum number of courses.
10. Find the names of students not enrolled in any course