Question: Consider the relational database of Figure. Give an expression in SQL for each of the following queries. a. Modify the database so that Jones now

Consider the relational database of Figure. Give an expression in SQL for each of the following queries.

a. Modify the database so that Jones now lives in Newtown.

b. Give all employees of First Bank Corporation a 10 percent raise.

c. Give all managers of First Bank Corporation a 10 percent raise.

d. Give all managers of First Bank Corporation a 10 percent raise unless the salary becomes greater than $100,000; in such cases, give only a 3 percent raisee.

e. Delete all tuples in the works relation for employees of Small BankCorporation.

employee (employee-name, street, city) works (employee-name, company-name, salary) mpany (compa-, ity) manages

employee (employee-name, street, city) works (employee-name, company-name, salary) mpany (compa-, ity) manages (employee-name, manager-name)

Step by Step Solution

3.25 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The solution for part 0a assumes that each person has only one tuple in the employee relation The so... View full answer

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

Document Format (1 attachment)

Word file Icon

16-CS-DB (136).docx

120 KBs Word File

Students Have Also Explored These Related Databases Questions!