written 7.9 years ago by | • modified 2.9 years ago |
Mumbai University > Information Technology > Sem 5 > Advanced Database Management System
Marks: 5M
Year: Dec 2015
written 7.9 years ago by | • modified 2.9 years ago |
Mumbai University > Information Technology > Sem 5 > Advanced Database Management System
Marks: 5M
Year: Dec 2015
written 7.9 years ago by |
Difference between view & relational:-
View:-
1) This is one type of relation which is not part of physical database.
2) It has no direct or physical relation with database.
3) Views can be used to provide with securities mechanism.
4) Modification through a view (e.g. insert update delete) Not permitted
Base Relation:-
1) A base relation is a relation that’s not a derived relation.
2) While it can manipulate the conceptual or physical relations stored in data.
3) It doesn’t provide security.
4) Modification may be done with a base relation.
View:-
We can assign the view a name & relate it query expression as
Create view <view name=""> as <query expression="">
Create view:-
Create view [current product list] as select product ID, product name from products
Where discontinued = No
We can create view, update view or replay and then drop view