11 Aug 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.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.