THE INNOV-8ERS
Presente
d By: Muhammad
Ahmad-165
Zujaja Arif-
132
Database Structure
Discussion
Topics:
Creating Views
Removing Views
Restrictions on
Views
Updating Views
Advantages and
Disadvantages
View
Materialization
What is view
 View is result set of stored query
 Read only vs updatable view
 materialized view
 Data is in the virtual table not stored
permanent
View display only selected data
View is also know as stored select
statement
View is logical table based on one or
more table or views
The table upon which a view is base
Restriction on
views
Views in databases are powerful tools,
but they come with certain
restrictions or limitations due to their
virtual nature and dependency on
underlying tables.
No Physical Storage
 No Support for Some DML
Operations
Dependency on Base Tables
 Performance Issues
 Limited Trigger Support
 Complex Security Management
Updating views
Updating a view in a database
involves altering its definition
without deleting and recreating it.
Steps:
Recreate the view
Test the view
Modify the Query
Purpose:
Updating a view changes its underlying
query to reflect new requirements
without altering the view's name or
structure.
When to use:
The underlying table structure
changes.
New business requirements arise,
needing a different data
perspective.
Advantages
of views.
Simplify complex
queries
Provide data
abstraction
Enhance security
Improve
performance
Disadvantage
s of views
Can be slower than querying
underlying tables directly
Can be more difficult to maintain
and update-
Can lead to data inconsistencies if
not properly synchronized with
underlying tables
 Can be dependent on underlying
tables, which can lead to
Views
Materialization
 Materialization in Views refers to
the process of physically storing the
result of a view query in the
database, rather than dynamically
computing it each time the view is
accessed.
 Materialization in views is an
optimization technique to improve
query performance by physically
storing the results of a query.
 Materialized views are particularly
Thank You!!!

Database ppt[}}.pptx database system and

  • 1.
    THE INNOV-8ERS Presente d By:Muhammad Ahmad-165 Zujaja Arif- 132 Database Structure
  • 2.
    Discussion Topics: Creating Views Removing Views Restrictionson Views Updating Views Advantages and Disadvantages View Materialization
  • 3.
    What is view View is result set of stored query  Read only vs updatable view  materialized view  Data is in the virtual table not stored permanent View display only selected data View is also know as stored select statement View is logical table based on one or more table or views The table upon which a view is base
  • 6.
    Restriction on views Views indatabases are powerful tools, but they come with certain restrictions or limitations due to their virtual nature and dependency on underlying tables. No Physical Storage  No Support for Some DML Operations Dependency on Base Tables  Performance Issues  Limited Trigger Support  Complex Security Management
  • 7.
    Updating views Updating aview in a database involves altering its definition without deleting and recreating it. Steps: Recreate the view Test the view Modify the Query
  • 8.
    Purpose: Updating a viewchanges its underlying query to reflect new requirements without altering the view's name or structure. When to use: The underlying table structure changes. New business requirements arise, needing a different data perspective.
  • 9.
    Advantages of views. Simplify complex queries Providedata abstraction Enhance security Improve performance
  • 10.
    Disadvantage s of views Canbe slower than querying underlying tables directly Can be more difficult to maintain and update- Can lead to data inconsistencies if not properly synchronized with underlying tables  Can be dependent on underlying tables, which can lead to
  • 11.
    Views Materialization  Materialization inViews refers to the process of physically storing the result of a view query in the database, rather than dynamically computing it each time the view is accessed.  Materialization in views is an optimization technique to improve query performance by physically storing the results of a query.  Materialized views are particularly
  • 12.