Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
9 views2 pages

SQL Update Questions

The document contains a list of SQL UPDATE statements for various employee records. It includes updates to salaries, departments, job titles, and other employee attributes based on specific conditions. Each statement specifies the employee_id or department_id to target the updates accordingly.

Uploaded by

techtrillion7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

SQL Update Questions

The document contains a list of SQL UPDATE statements for various employee records. It includes updates to salaries, departments, job titles, and other employee attributes based on specific conditions. Each statement specifies the employee_id or department_id to target the updates accordingly.

Uploaded by

techtrillion7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL UPDATE Questions

1. Update the salary of employee with employee_id = 10 to 50000.

2. Change the department of employee with employee_id = 25 to department_id = 3.

3. Increase the salary of all employees in department_id = 2 by 10%.

4. Set the email of employee with employee_id = 15 to '[email protected]'.

5. Modify the job_title of employee with employee_id = 8 to 'Senior Developer'.

6. Reduce the bonus of employees in department_id = 4 by 5%.

7. Update the phone number of employee with employee_id = 30 to '9876543210'.

8. Change the work location of all employees in department_id = 5 to 'Remote'.

9. Increase the annual leave days of employees with role = 'Manager' by 3 days.

10. Update the joining_date of employee with employee_id = 22 to '2023-01-15'.

11. Modify the supervisor_id of employee with employee_id = 40 to 5.

12. Change the employment_status of employees in department_id = 6 to 'Active'.

13. Update the contract_type of employee with employee_id = 35 to 'Permanent'.

14. Increase the project_bonus of employees in IT department by 2000.

15. Set the probation_period of new hires (hired after 2024-01-01) to 6 months.

16. Change the designation of employee with employee_id = 12 to 'Team Lead'.

17. Update the shift_timing of all employees in customer support to '9 AM - 6 PM'.

18. Modify the certification_status of employee with employee_id = 50 to 'Certified'.

19. Set the resignation_date of employee with employee_id = 27 to '2024-12-31'.

20. Increase the stock_options for employees with more than 5 years experience by 50%.

21. Change the appraisal_rating of employee with employee_id = 17 to 4.5.

22. Update the transport_facility for employees in department_id = 7 to 'Available'.

23. Modify the remote_work_status of employee with employee_id = 29 to 'Approved'.


24. Set the retirement_age of all employees in HR to 60 years.

25. Increase the performance_bonus of top 10% employees by 15%.

26. Change the reporting_manager of employee with employee_id = 14 to 9.

27. Update the work_experience of employee with employee_id = 38 to 7 years.

28. Modify the payroll_type of all part-time employees to 'Hourly'.

29. Set the maternity_leave_days for female employees to 90 days.

30. Increase the housing_allowance of employees in Sales department by 10%.

You might also like