Menu Bar

Views

Chapter 26:

Create a view to get the product and supplier details
  1. What is view and its importance
  2. Difference between tables and views


In SQL, a view is a virtual table based on the result-set of an SQL statement.
A view contains rows and columns, just like a real table. The fields in a view are fields from one or more real tables in the database.
You can add SQL functions, WHERE, and JOIN statements to a view and present the data as if the data were coming from one single table.



Create a View:





Create a View: product and supplier: