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,

 Write the following queries in SQL, using the university schema. classroomfbuilding,

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!