Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Now use the following tables staffxx (staffNo, lname, fname, dept, desig, joiningDate, salary, rating, branchCode, DOB, commission, GossSalary) branchxx (branchCode, address, city, phone, yearOfOpening)

1. Now use the following tables

staffxx (staffNo, lname, fname, dept, desig, joiningDate, salary, rating, branchCode, DOB, commission, GossSalary)

branchxx (branchCode, address, city, phone, yearOfOpening)

Where the code for rating is

1 = Full time employee

2 = Contract employee

3 = Visiting employee

Q2. You need to add two new columns as Manager (same as staffID) and managerSince (date) in branch table

Q3. Modify at least three tuples of the branch table to add manager code and managerSince date in branch table

Update branch set staffId=A1001 managerSince= ;

Q4. After updating, the queries needed are to: (6 x 2 + 3)

  1. List the details of all the managers who are listed in branch table
  2. List all the managers who are working as manager for more than 2 years
  3. List a manager who is working as a manager at the same branch ever since he has joined.
  4. Write the command to give 3% increment to all managers managing the branch that has been opened 10 years back.

Write commands, tables and screen shots

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

What is the budget for this project?

Answered: 1 week ago