Docsity

Vertical Partitioning, Replication - Database Management - Lecture Slides, Slides of Introduction to Database Management Systems

Partial preview of the text

Download Vertical Partitioning, Replication - Database Management - Lecture Slides and more Slides Introduction to Database Management Systems in PDF only on Docsity!

Database

Management

System

Lecture - 24

Vertical Partitioning

Same table is split into different physical records; depending on the nature of accesses

PK is repeated in all vertical partitions of a table to get the original table

Replication

Final form of denormalization

Data duplicated

Increases the access speed and failure damage

Entire table or part of table can be replicated

Replication Example

Generally adopted where updation is not very frequent

In PROJ-EMP we replicate the data with both the PROJ and EMP tables so on the cost of extra storage both tables have the related data

Clustering Files

Clustering is also suitable to

relatively static situations

Define cluster, define the key of

the cluster, include the tables into

the cluster while creating

associating the key with it

Other Related Issues

To be discussed later during

storage concepts discussion

  • File structures
  • Indexes
  • RAID

Structured Query

Language (SQL)

Introduction

Also pronounced as “Sequel”

A de-facto standard for relational

DBMS

Standard accepted by bodies like

ANSI and ISO

History

Relational data model introduced by

Codd in 1970

A relational DBMS project started

by IBM was system R that included sequel as manipulation language

History

First commercial DBMS launched was Oracle in 1979

Other early DBMSs DB2, INGRES

ANSI and ISO defined first standard of SQL in 1986 known as SQL-86 that was further extended to SQL-

Benefits of Standard SQL

Reduced training cost

Application portability

Application longevity

Reduced dependence on a single vendor

Cross-system communication

SQL

SQL is used for any type of interaction with the database through DBMS

Right from creating database, tables, views, users

Insertion, updation, deletion of data in the database

MS SQL Server

The DBMS for our course is

Microsoft’s SQL Server 2000 desktop edition

Two main tools Query Analyzer and

Enterprise Manager; both can be used

For SQL practice we will use QA

Terminology of SS

Instance of SQL Server

Instance contains different objects like databases, security, DTS etc.

Then databases object of SS contains multiple databases, each database contains multiple objects like tables, views, users, roles etc.