Database Management System Lecture 41: Updating Multiple Tables and Materialized Views, Slides of Introduction to Database Management Systems

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

2011/2012

Uploaded on 11/03/2012

dharmaraaj
dharmaraaj 🇮🇳

4.4

(68)

145 documents

1 / 19

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Database
Management
System
Lecture - 41
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Database Management System Lecture 41: Updating Multiple Tables and Materialized Views and more Slides Introduction to Database Management Systems in PDF only on Docsity!

Database

Management

System

Lecture - 41

Updating Multiple tables

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

Transaction Management

Comprises

Database Recovery Concurrency Control

Database

Management

System

Lecture - 41