Views
Views
OR
Select Emp_Id,Emp_Name,Emp_City
from Employee_View2
Drop a view
Drop View Employee_View2
DML Query In View
• In a view we can implement many types of DML query
like insert, update and delete.
• But for a successful implementation of a DML query
we should use some conditions like:
• View should not contain multiple tables
• View should not contain set function.
• View should not use the Distinct keyword
• View should not contain Group By, having clauses
• View should not contain Sub query
• View should not use Set Operators
• All NOT NULL columns from the base table must be included
in the view in order for the INSERT query to function.
create view data AS
select m.movie_no,m.title, m.type,i.cust_id,
i.issue_date ,i.return_date
from invoice i,movie m
where i.movie_no=m.movie_no