Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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,000

Explanation / 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.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote