DBMS Practical Lab Sheet - 2
DBMS Practical Lab Sheet - 2
3. View the user name, make sure it’s your login name.
EmpCode Number
Name varchar2 6 (Six)
Salary Number
20. Make a copy of employee table as “NewEmp” table with all records.
21. See the records of “NewEmp” table.
22. Make a copy of employee table as “Emp2” table with no (Zero) records.
23. See the records of all 3 table (Employee, NewEmp and Emp2).
24. See the structure of all 3 table (Employee, NewEmp and Emp2).
25. Create a new table “MyTable” from employee table with only Name and Salary columns.
29. Drop the columns “name” and “empcode” from NewEmp table.
31. Truncate the “Mytable” table. (do not use delete command).
33. Rollback.
34. Again See the records of “MyTable” table. (What is your observation?)
38. Again See the records of “MyTable” table. (What is your observation?)