Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Create a database with five different tables with following

1. Create 4 to 5 tables in your database


2. Assign different integrity constraints on different columns of database tables.
3. Insert at least 10 records in each table of your database.
4. Rename any one table with new table name.
5. Show use of COMMIT, ROLLBACK and SAVEPOINT while performing different operations in
database.
6. Create a view on table2 of your database to show all records of selected columns only.
7. Create a view on table3 and table4 of your database to show records of selected columns only.
8. Write a sequence to assign values to any specific column of a table.
9. Write a user defined PL/SQL code to check value (eg. Cust_id ) from user and raise an exception if
user enters value less than 0 (zero) which is not allowed.
10. Write a cursor to update values of a specific column depending on some condition (e.g. Update
the salary of employees whole salary are less than a specific salary.)
11. Write a function that will return the total number of records in specific table of a table.
12. Create a user for your database and assign all privileges.

You might also like