Write an SQL query to answer the following question: Is any instructor qualified
ID: 3858419 • Letter: W
Question
Write an SQL query to answer the following question: Is any
instructor qualified to teach ISM 3113 and not qualified to
teach ISM 4930?
Write SQL queries to answer the following questions:
a. How many students were enrolled in section 2714 during
semester I-2008?
b. How many students were enrolled in ISM 3113 during
semester I-2008?
STUDENT (StudentiD, StudentName) QUALIFIED (FacultylD, CourselD, DateQualified StudentID FacultylDCourselD 38214 54907 FACULTY (FacultylD, FacultyName) FacultylD 2143 4756 SemestCourseID I-2008 I-2008 I-2008 I-2008 ISM 3113 ISM 3113 ISM 4212 COURSE (CourselD, CourseName) REGISTRATION (StudentID, SectionNo, Semester) StudentiD SectionNo ISM 31 ISM 3112 ISM 4212 ISM 4930 13 Syst Analysis 12 Syst Design -2008 -2008 -2008 -2008 38214 2 DatabaseExplanation / Answer
Quries
1)
SELECT FACULTY.FacultyNAME FROM FACULTY, QUALIFIED WHERE QUALIFIED.FacultyID=FACULTY.FacultyID
AND QUALIFIED.CourseID='ISM 3113'
AND NOT (QUALIFIED.CourseID='ISM 4930')
2)
a) SELECT COUNT (DISTINCT (StudentID)) FROM REGISTRATION WHERE SectionNo = 2714
AND SEMESTER = 'I-2008'
b) SELECT COUNT (DISTINCT (StudentID)) FROM SECTION, REGISTRATION WHERE SECTION.SectionNO = REGISTRATION.SectionNO AND CourseID = 'ISM 3113' AND Semester = 'I-2008'
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.