Patel Task1 SQL Result
Patel Task1 SQL Result
Answer:
Image 1:
Query # 2
Answer:
Image 2:
Q3: Write a query to display the name and office number of all instructors who teach Psy101.
(USE NATURAL JOIN)
Image 3:
Q4: Write a query to display the semester and the number of courses offered in that semester.
Display only the semesters that offer more than five courses.
Image 4_1:
Image 4_2:
Q5: Write a SQL statement to display the name of each campus and the total number of rooms in
that campus.
Image 5_1:
Image 5_2:
Q7: Write a SQL statement to display the start date and start time of all classes taught by
instructor Hammett Glenn.
Image 7:
Q8: Write a SQL statement to display the number of students in each major with a status of
failing.
Image8:
Q9: Write a SQL statement to display the credit hours of all courses that Hammett Glenn is
approved to teach.
Image9:
Q10: Get the campus name and phone number of all rooms with numbers greater than 25.