Hello this quesion is related to Database Fundementals Please don\'t answer with
ID: 3741339 • Letter: H
Question
Hello
this quesion is related to Database Fundementals
Please don't answer with your handwriting
thank you
Write the following inserts, deletes or updates in SQL, using the university schema. a) Increase the salary of each instructor in the Finance department by 10%. b) Delete all courses that have never been offered (that is, do not occur in the section relation. c) Insert every student whose tot_cred attribute is greater than 150 as an instructor in the same department, with a salary of $25,000Explanation / Answer
a) UPDATE Instructor SET salary = salary * 1.1
c) INSERT INTO Instructors (name, deptName, salary)
SELECT name, deptName, 25000 FROM students WHERE tot_cred > 150;
**Comment for any further queries.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.