lEARN :: SQL | Views
SQL | Views Views in SQL are kind of virtual tables. A view also has rows and columns as they are in a real table in the database. We can create a view by selecting fields from one or more tables present in the database. A View can either have all the rows of a table or specific rows based on certain condition. In this article we will learn about creating , deleting and updating Views. Sample Tables : StudentDetails CREATE TABLE FOLLOWING FIELDS STD_ID, NAME,ADDRESS StudentMarks CREATE TABLE FOLLOWING FIELDS id , NAME,MARKS, AGE CREATING VIEWS We can create View using CREATE VIEW statement. A View can be created from a single table or multiple tables. Syntax : CREATE VIEW view_name AS SELECT column1, column2..... FROM table_name WHERE condition; view_name : Name for the View table_name : Name of the t...