DBMS Lab
DBMS Lab
CSE3 C5
1. Create the following Tables:
ii. EMPLOYEE (empno, ename, salary, designation, date of birth, deptid, pid)
7. Try to delete any one record from DEPT table. Observe the error, if any.
8. Delete some of the records from DEPT table with CASCADE option
9. Copy all the data from EMPLOYEE table to a new table EMPLOYEE_HISTORY.
10. Remove the check constraint from EMPLOYEE table applied at Problem No. 3.
13. List the name and designation of all employees of department 1001
14. Display all employees whose name starts with letter ‘S’.
15. Display all those employees whose names have exactly 4 characters
16. List all those employees who were born in the year 1982
17. Display the data which looks like:
Akshay holds the position of CEO in dept 10 and he is getting Rs.8000
18. Create a table EMP1 from EMP. Give different field names to the table and keep only the data from
dept 1001 from that table.
19. List employee names and salary increased by 20% and express as whole number of dollars.
22. Display the name and date of birth of all employees in the format ‘13th January, 1995’
23. Display the date of completing the probation period (one year of service) for all employees.
24. Display the total experience of the employees in the format: 3 Years 4 Months and 24 Days
25. Find the minimum, maximum and average salary of the employees.
29. Insert few names with their surnames and write to query to display the names in reverse order i.e.,
surname then name.
30. Display employee name, salaries with their department names.