What is the difference between a simple view and a materialized view in DB2?

  • A simple view allows updates, inserts, and deletes, whereas a materialized view does not
  • A simple view can only be created by database administrators, whereas a materialized view can be created by any user
  • A simple view is more efficient for complex queries than a materialized view
  • A simple view is not stored physically in the database, whereas a materialized view is stored physically
In DB2, a simple view is a virtual table whose contents are defined by a query and are not stored physically in the database. On the other hand, a materialized view is a physical copy of the result set of a query that is stored in the database. Materialized views can improve query performance by precomputing and storing the results, but they require more storage space and may not always reflect the latest data changes. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *