Answered step by step
Verified Expert Solution
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 employeeid salary, salary city country
From employees JOIN departments
JOIN locations
WHERE employeeid
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 than they get increase of their salary but if it is more than then increaseCalculate that and print on the screen with DMBSOUTPUT 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 than they get increase of their yearly salary but if it is more than then increase Calculate that and print on the screen with DMBSOUTPUT current salary, new increased salary, current yearly salary and increased total yearly salary
Sample output will be something like
Employeeid firstname lastname City Cursalary Incresed salary CurYearly increased
James Furlan Toronto
BEGIN
SELECT
END;
Test the code with employeeid Then test the code with employeeid and capture screen shot for both run
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started