Lab 3 Questions
Lab 3 Questions
Lab 3 Questions
1. Create the LIT_DEPT table based on the table following chart given below.
3. Create the LIT_EMP table based on the table instance chart given below. Confirm
that the table is created by selection structure.
4. Add new column job Varchar2 (30) to LIT_EMP table and confirm the change.
7. Change the salary rule and provide a new rule between 2000 and 20000
10. Check the constraint name, table name and status from its data dictionary
11. Delete salary column from LIT_EMP table. Confirm the modification.
12. Delete Name and job Column from LIT_EMP using a single command.
barikbishnu192@gmail.com 9937917604 1
13. Create the EMP_COPY table based on the structure of the EMP table. Include only the
empno, Ename, sal, deptno columns. Confirm the structure.
14. Check the number of tables available inside the current user and their names.
16. Delete the COPY_EMP table logically from the database and display contents of
recycle bin.
19. Create the above LIT_EMP table with above specification. Now provide all the
constraints in table level. Impose ON DELETE CASCDE option to deptno.
20. Insert few records and update those salaries to 10000 whose salary is greater than
maximum salary of department 30.
22. Delete very first record from LIT_EMP. Confirm your changes to the table.
24. Empty the entire table and confirm that table is empty permanently.
barikbishnu192@gmail.com 9937917604 2