Consider the following Employee database and sample data. You may wish to add more data records. Employee (empId, name,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Consider the following Employee database and sample data. You may wish to add more data records. Employee (empId, name,

Post by answerhappygod »

Consider the following Employee database and sample data. Youmay wish to add more data records. Employee (empId, name, address,DOB, job, salaryCode, deptId, manager, schemeId) Department(deptId, name) SalaryGrade (salaryCode, startSalary, finishSalary)PensionScheme (schemeId, name, rate)
Consider The Following Employee Database And Sample Data You May Wish To Add More Data Records Employee Empid Name 1
Consider The Following Employee Database And Sample Data You May Wish To Add More Data Records Employee Empid Name 1 (284 KiB) Viewed 37 times
1. Use appropriate data types and write the Oracle SQLstatements to create the tables defined in the schema above.
2. Write SQL Statements to return the following data from theEmployee database:
a) The name (in ascending order), the starting salary anddepartment id of each employee within a descending order ofdepartment ids.
b) Give the number of employees for each of the pension schemesoffered by the company. Result listing should include the name ofeach scheme and its corresponding number of employees who join thescheme.
c) Give the total number of employees who are not managers butcurrently receive an annual salary of over £35,000.
d) List the id and name of each employee along with his/hermanager’s name.
TARIF. FinnlnyDด
TABLE: Department
TABLE: PensionScheme
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply