Write the following queries in SQL, using the university schema. classroomfbuild
ID: 3685180 • Letter: W
Question
Write the following queries in SQL, using the university schema. classroomfbuilding, room number, capacity) departmentfdept name, building, budget) course(course id, title, dept name, credits) instructorQD, name, dept name, salary) sectionfcourse id, sec id, semester, year, building, room number, time slot id) teachesQD, course id, sec id, semester, year) studentQD, name, dept name, tot cred) takesQD, course id, sec id, semester, year, grade) advisor(s ID, i ID) time slotftime slot id, day, start time, end time) forereqfcourse id, prereq id) Find the titles of courses in the Comp. Sei. department that have 3 credits. Find the names of all students who have taken at least one Comp. Sei. course; make sure there are no duplicate names in the result Find the maximum enrollment, across all sections, in Autumn 2009. Find the IDs and names of all students who have not taken any course offering before spring 2009 Increase the salary of each instructor in the Comp. Sei. department by 10%. Delete all courses that have never been offered (that is, do not occur in the section relation). Insert every student whose tot cred attribute is greater than 100 as an instructor in the same department, with a salary7 of $10,000. Create a new course "CS-001", titled "Weekly Seminar",with 0 credits. Create a section of this course in autumn 2009, with sec id of 1. Enroll every student in the Comp. Sei. department in the above section.Explanation / Answer
Multiple Questions : Answering 1st
a) SELECT title FROM course WHERE dept_name = "Comp. Sci." and credits =3;
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.