Creates a view on the database. Views are used to give a different perspective on the data even though it is not stored that way.
CREATE [ OR REPLACE ] VIEW … [ owner.]view-name [ ( column-name [ , … ] ) ] … AS select-without-order-by … [ WITH CHECK OPTION ]
CREATE VIEW male_employee AS SELECT * FROM Employees WHERE Sex = 'M'
CREATE VIEW emp_dept AS SELECT Surname, GivenName, DepartmentName FROM Employees JOIN Departments ON Employees.DepartmentID = Departments.DepartmentID
You cannot add or drop IDENTIFY or AUTOINCREMENT columns from a view.
Views can be updated unless the SELECT statement defining the view contains a GROUP BY clause, an aggregate function, or involves a UNION operation. An update to the view causes the underlying tables to be updated.