Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Find out how much salary increase employee will receive based on city they work First Develop a SQL query to find how much salary per

Find out how much salary increase employee will receive based on city they work
First Develop a SQL query to find how much salary per year an employee earn and which city and country they work...
You can use Join technique
SELECT employee_id, salary, salary*12, city ,country
From employees JOIN departments
......
JOIN locations
.....
WHERE employee_id=195
Build a code to determine which employee works for which city and report their increase based on the city they live
If employee is in Seattle and yearly salary is less than 90,000 than they get %12 increase of their salary but if it is more than 90,000 then 14% increase(Calculate that and print on the screen with DMBS_OUTPUT current salary, new increased salary, current yearly salary and increased total yearly salary
If employee is working in Toronto and yearly salary is less than 90,000 than they get %15 increase of their yearly salary but if it is more than 90,000 then 17% increase (Calculate that and print on the screen with DMBS_OUTPUT current salary, new increased salary, current yearly salary and increased total yearly salary
Sample output will be something like
Employee_id first_name last_name City Cur_salary Incresed salary Cur_Yearly increased
106 James Furlan Toronto 5,0005,50060,00066,000
BEGIN
SELECT
END;
Test the code with employee_id =201, Then test the code with employee_id=113 and capture screen shot for both run

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

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions

Question

If {Y (t), t 0} is a Martingale, show that E[Y (t)] = E[Y (0)]

Answered: 1 week ago

Question

Define Administration?

Answered: 1 week ago