SQL Exp 08PK
SQL Exp 08PK
:- 08
Roll No. :- 34
Class:- SE (IT)
Subject:- DB (SQL)
Theory:-
Views:-
(1) It is defined as a database object that allow us to create a virtual table in the database
whose contents are defined by a query or taken from one or more table.
(2) View is defined to hide complexity at query from user.
(3) The table of on which view is defined is called as view base table.
(4) Instead of showing entire table to a user can show a glimped of table of the user which is
required for him.
Types of Views:
(1) Simple view :-
-The views which are based only on one table called as simple view.
-It allow to perform DML operation with some restriction.
(7) Cascade :-
-Delete view along with all dependent View or original view.
Conclusion:-
Views are nothing but virtual tables which are created from base table, instead of showing
entire table to user, can show only required data.