Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE MYSQL DATABASE **Provide Screenshot and explanation on each number Use the table below and create a program for the following problems: EMPLOYEE(EmpNo, Sname, JobLevel,

USE MYSQL DATABASE

**Provide Screenshot and explanation on each number

Use the table below and create a program for the following problems:

EMPLOYEE(EmpNo, Sname, JobLevel, Status, DateHired, Salary, EmpAddress). (Please create the table and populate it for your test data for these exercises. Joblevel values could be MGR-manager, RF-Rank and file, S-Supervisor Status values could be R- regular, P-probationary, C-contractual)

1. List the records of employees whose salary is the same as employee whose empno is 11111

2. List the names of employees whose salary is greater than the minimum salary

3. List the names of the employees who have the highest salaries

4. Create another table called Regular_Emp, with the same attributes except for status REGULAR_EMP(EmpNo, Sname, JobLevel, DateHired, Salary, EmpAddress

4.1 Copy all records from Employee table to Regular_Emp table if the status is =R This will effectively store in Regular_Emp table all records of regular employees

5. List all records of employees whose salary is less than the average salary of all employees

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

2 What supply is and what affects it.

Answered: 1 week ago