0% found this document useful (0 votes)
6 views

SQL Exp 08PK

Uploaded by

ssjpejdepartment
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

SQL Exp 08PK

Uploaded by

ssjpejdepartment
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

EXPERIMENT NO.

:- 08

Name:- Prathmesh Sandesh kante

Roll No. :- 34

Class:- SE (IT)

Subject:- DB (SQL)

Aim:- To study and implement various views in SQL .


EXPERIMENT NO. :- 08

Aim:- To study and implement various views in SQL .

Requirements:- Notepad editor, oracle database,llg express edition.

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.

(2) Complex View :-


-The views which are based on more than one table called as complex view.
- It do not allow DML operations to be performed.
(3) Creating a view:-
-To create a view, subway must be embeded within the create view statements.
-The create statement assigns the name to the view and also gives the query which define
the view.

(4) Retriving a view:-


-For retriving a view, we use select statement.

(5) Updating a view:-


-These are some situations in which some modifications are required in view definition.

(6) Dropping the view:-


-To drop a view, we use drop view statements.
- The drop view, statement requires a name to the view.
-The Drop view does not affect have table or any column at a base table.

(7) Cascade :-
-Delete view along with all dependent View or original view.

(8) Modifying a view:-


-The CREATE of REPLACE statement in view syntax is used to modify 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.

You might also like