Question: Use the SQL Developer to login into your account Now create the following tables : (xx is your login number) staffxx (staffNo, lname, fname, dept,
- Use the SQL Developer to login into your account
- Now create the following tables : (xx is your login number)
staffxx (staffNo, lname, fname, dept, desig, joiningDate, salary, rating, branchCode)
also DOB, commission and GossSalary
branchxx (branchCode, address, city, phone, yearOfOpening)
Please note the code for rating as
1 = Full time employee
2 = Contract employee
3 = Visiting employee
- Write the queries to:
- List all the Employees working in a branch in Kamloops
- List the average salary of managers in Kamloops
- List the difference in the salary than average salary of all the managers
- List all the details of all the employees with their branch details.
- List the non managers getting salary more than any of the manager
- List the non managers getting salary more than all the managers
- List the details of the manager of the oldest branch
- Add two columns Manager (same as staffID) and managerSince (date) in branch table
- Modify three tuples of the branch table to add manager code and managerSince date in branch table
- Now run the queries:
- List the details of all the managers who are listed in branch table
- List all the managers who are working as manager for more than 2 years
- List a manager who is working as a manager at the same branch ever since he has joined.
This is a question of database system
Assignment due at 4p.m. today
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
