











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Various aspects of updating multiple tables in a database management system (dbms) through creating views, materialized views, and transaction management. Examples of creating views using sql queries and inserting data into them. It also discusses the concept of materialized views, their benefits, and how they reflect modifications made to base tables. The lecture also touches upon transaction management, its components, and the concept of a transaction.
Typology: Slides
1 / 19
This page cannot be seen from the preview
Don't miss anything!












One at a time CREATE VIEW st_pr_view1 (a1, a2, a3, a4) AS (select stId, stName, program.prName, prcredits from student, program WHERE student.prName = program.prName)
insert into st_pr_view1 (a1, a2) values (‘S1043', ‘Bilal Masood’) SELECT * from student
Interesting Thingi Select * from st_pr_view
Materialized Views
Views are virtual tables Query executed every time For complex queries involving large number of join rows and aggregate functions Problematic
Materialized Views
An indexed view also automatically reflects modifications made to the data in the base tables after the index is created, the same way an index created on a base table does.
Materialized Views
Create indexes only on views where the improved speed in retrieving results outweighs the increased overhead of making modifications.
Materialized Views
create unique clustered index stdview_ind1 on st_view (stfname)
Partitioned Views
Lets not discuss it
Idea is, data lying at multiple places and combined in a view
Same table partitioned horizontally based on some condition
Transaction Management
Comprises
Database Recovery Concurrency Control