You are on page 1of 2

Table vs.

View Comparison Chart


The following comparison chart explains their main differences in a quick manner:

Table View

A table is used to organize Views are treated as a virtual/logical table


data in the form of rows and used to view or manipulate parts of the
columns and displayed them table. It is a database object that contains
in a structured format. It rows and columns the same as real tables.
makes the stored information
more understandable to the
human.

Table is a physical entity that The view is a virtual entity, which means
means data is actually stored data is not actually stored in the table.
in the table.

It is used to store the data. It is used to extract data from the table.

It generates a fast result. The view generates a slow result because


it renders the information from the table
every time we query it.

It is an independent data It depends on the table. Therefore we


object. cannot create a view without using tables.

Table allows us to perform The view will enable us to perform DML


DML operations. operations.

It is not an easy task to It is an easy task to replace the view and


replace the table directly recreate it whenever needs.
because of its physical
storage.

It occupies space on the It does not occupy space on the systems.


systems.

Conclusion
In this article, we have made a comparison between table and view that are two
database objects. A user cannot create a view without using tables because it depends
on the table.

What is a check constraint in SQL Server?


A check constraint in SQL Server (Transact-SQL) allows you to specify a condition on
each row in a table.

SQL CREATE VIEW Statement


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 statements and functions to a view and present the data as if
the data were coming from one single table.

A view is created with the CREATE VIEW statement. 

CREATE VIEW Syntax

You might also like