DBMS | VIEW Keyword | Exp - 3 | Updated


View

A view is nothing more than a SQL statement that is stored in the database with an associated name. A view is actually a composition of a table in the form of a predefined SQL query.
A view can contain all rows of a table or select rows from a table. A view can be created from one or many tables which depends on the written SQL query to create a view.
Views, which are a type of virtual tables allow users to do the following −
  • Structure data in a way that users or classes of users find natural or intuitive.
  • Restrict access to the data in such a way that a user can see and (sometimes) modify exactly what they need and no more.
  • Summarize data from various tables which can be used to generate reports.

Syntax

CREATE VIEW view_name AS
SELECT column1, column2, ...
FROM table_name
WHERE condition

For more info visit tutorialspoint

Problem Statement

This Company want to list of Employee those getting highest, lowest and average salary own department.

File: Download here 

1 comment:

  1. Hello Admin,

    A view is just a SQL proclamation that is put away in the database with a related name. A view is really an organization of a table as a predefined SQL question.

    Regards,
    Thanks

    RITU

    ReplyDelete

Powered by Blogger.