Database Management
Database Management
Lab Assessment - 3
Table Declaration -
VALUE INSERTIONS –
Adding Constraints –
1. For Employee Table –
2. For Department Table –
Correct Code
Reason – value '677678989' in the e_ssn column does not match any
existing ssn in the referenced table e2099
Correct Code
2. Find the employee names whose salary lies in the range between 30000 and 70000.
10. Display all the department names in upper case and lower case
11. Display the first four characters and last four of the department names using ltrim and rtrim.
12. Display the substring of the Address (starting from 5th position to 11 th position) of all
employees
14. Display the age of all the employees rounded to two digits
15. Find the last day and next day of the month in which each manager has joined.
23. Display the project location padded with **** on left side.
24. Remove the word ‘Project’ from the project name and display it.
25. Select the SSN of the employee whose dependent name is either Michael or Abner.