View
View
CREATING VIEW:
SYNTAX: create view view_name(attributes) as (select query
from existing_table_name);
DESCRIPTION:
Using this command, we can create views from existing table without every
time giving the same condition to check.
Ex:
OUTPUT:
UPDATING VIEW:
DESCRIPTION:
This command is similar to create except that at end of the query we add
‘with check option’ which allows the view to get updated automatically from the
table without the programmer to update it with commands explicitly.
Ex:
OUTPUT:
DESTROYING VIEW:
DESCRIPTION:
Using this command, we can drop the views that we don’t want.
Ex:
OUTPUT:
Exercise Questions: