Create a procedure to increase 10% the salary of all subordinates in a department
1. Create a procedure to increase 10% the salary of all subordinates in a department, do it as many times as necessary, until the average salary difference between managers and their subordinates in the department is smaller than 5%.
2. Create a new table to keep the count of the number of subordinates of an employee. Create a trigger to keep this table up to date. Remove from this table the data of the employee if fired. Consider all scenarios.
3. Create a new log table and a trigger to keep track of any changes to the employees table. The table schema should be (log_event_id, date, description) and the contents should look as e.g. (1234, 04/05/17, “Employee 123 updated salary from 5000 to 10000”). Track salaries, managers, departments, and jobs. Consider all scenarios.
4. Create a procedure protected with a transaction to steal a percentage of the salary of the employees and transfer the money to the president’s salary. If the president’s new salary is bigger than $120k undo the changes.
5.Create a table for projects (title, manager, duration (days), cost), and check that the cost must be < 1000 per day nor bigger than the sum of the salaries of the department employees the manager works for. Consider all scenarios.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
