How views are created in DBMS?
- What is view and how it is created in DBMS?
- How views are created in SQL?
- Why views are created in database?
- How views are created and destroyed in SQL?
What is view and how it is created in DBMS?
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.
How views are created in SQL?
Answer: A VIEW in SQL is created by joining one or more tables. When you update record(s) in a view, it updates the records in the underlying tables that make up the SQL View. So, yes, you can update the data in a SQL VIEW providing you have the proper privileges to the underlying SQL tables.
Why views are created in database?
Views can be used as a security mechanism A view can select certain columns and/or rows from a table (or tables), and permissions set on the view instead of the underlying tables. This allows surfacing only the data that a user needs to see.
How views are created and destroyed in SQL?
Views on which data manipulation can be done are called Updateable Views. When an updateable view name is given in an Insert Update, or Delete SQL statement, modifications to data in the view will be immediately passed to the underlying table.
Related Questions
-
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago