You are on page 1of 4

Practical 5 –Views and Transaction Commands

Views

 Database only stores the query expression associated with the view relation. View
relation is created whenever needed, on demand.
 Views can be created from existing views also.
 Materialized Views: Storing whole view and updating when table changes.
 Updateable Views:
o The from clause has only one database relation.
o The select clause contains only attribute names of the relation, and does not
have any expressions, aggregates, or distinct specification.
o Any attribute not listed in the select clause can be set to NULL, if it does not have
a not null constraint.
o The query does not have a group by or having clause.

Commit, Savepoint and Roll Back

Creating a savepoint and commiting:

Adding another savepoint:


Savepoint before commit cannot be rolledback to. However, roll back can be done upto a
savepoint written after commit. This is because committed work cannot be rolled back.

You might also like