Database views in SQL – View of Data

Before going into the Database views in SQL, first, let’s see what a Database is?


The database is a collection of interrelated data, for example, the Database of the Hospital. It contains the data related to Patients Drugs, their illness, etc., which are somehow related. A Database must be efficient and sensible; for example, if a nurse has a database of patients and can’t get sense out of it, it is for no use.

Database-views-in-SQLDatabase views in SQL

Database Applications

A Database is required in almost every field of life. Without it, you will lose track of what you have done or going to do.

  • Sales: What you Sold? Quantity? Price?
  • Accounting: How many Clients? How much was Paid? How Much Profit?
  • HR: Number of Employees? Their Salaries? Budget Allocation?
  • Universities: Number of Students? Their Majors? Their Fees dues?

For More Applications Visit Here.

Database views in SQL

database system’s primary goal is to offer users an abstract view of data. In order to view the data, there are two basic things that are important, Data models and Data abstraction. The Data model is a collection of tools for describing data while Data abstraction hides the complexity of the implementation of Data Structures to represent data.

Typically, a Database is in the form of a table. Various tables store all the data, where the column headers are names of variables and the rest are just values. A column in a Database has a relation with other columns, for example, if we have headers NAME, SALARY, ADDRESS, the next row to the column should contain data only to a specific person.

In SQL, views are similar to virtual tables. Rows and columns in a view are the same as they are in a database table. A view may be created by choosing fields from one or more tables in the database. A View can contain all of a table’s data or only particular rows based on criteria.



Databases related posts Visit HERE

Python-related posts Visit HERE

C++ related posts Visit HERE

Data Structures related posts visit HERE

Algorithms related posts visit HERE

Data Science related posts visit HERE

Share the Knowledge