lect 12 database system

Upload: shamsshabahat

Post on 10-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 Lect 12 Database System

    1/21

    1

    Fundamentals of

    Database Systems

  • 8/8/2019 Lect 12 Database System

    2/21

    What is a Database?

    A database is any organized collection of data.Some examples of databases you mayencounter in your daily life are:

    a telephone book T.V. Guide

    airline reservation system

    motor vehicle registration records

    papers in your filing cabinet

    files on your computer hard drive.

  • 8/8/2019 Lect 12 Database System

    3/21

    3

    What is a Database?

    A collection of related facts

    Filing CabinetFiling CabinetHard disk full of dataHard disk full of data

    DiaryDiary

    Library

  • 8/8/2019 Lect 12 Database System

    4/21

    Basics of Database

    A Database consists of four elements:

    Data: Data is nothing but the facts

    Relationship : It represents the correspondencebetween the various data elements

    Constraints : Constraints are the predicates thatdefine correct database state

    Schema : It describes the organization of data

  • 8/8/2019 Lect 12 Database System

    5/21

    Relationship Types

    One-to-one (1:1)

    One-to-many (1:M)

    Many-to-many (M:M)

  • 8/8/2019 Lect 12 Database System

    6/21

    Table

    A table is the primary unit of physical storage

    for data in a database.1

    Usually a database contains more than one

    table.

    1) Stephens, R.K. and Plew. R.R., 2001. Database Design. SAMS, Indianapolis , IN.

  • 8/8/2019 Lect 12 Database System

    7/21

    Table

  • 8/8/2019 Lect 12 Database System

    8/21

    Field (Column)

    a field

    Customers

  • 8/8/2019 Lect 12 Database System

    9/21

    Record (Row)

    a record

    Customers

  • 8/8/2019 Lect 12 Database System

    10/21

    Why a Database System

    Redundancy Can be controlled

    Inconsistency can be avoided

    Data can be shared Standards can be enforced

    Security restrictions can be applied

    Integrity can be maintained

  • 8/8/2019 Lect 12 Database System

    11/21

    11

    What is a DBMS?

    DBMS - DataBase Management System

    Multiple Billion dollar market for DBMS products and

    services !

    A software system for defining, constructing and

    manipulating databases for various applications

    DBMS may be general purpose (business

    applications) or special purpose (biologicaldatabases, geographic information, ...)

  • 8/8/2019 Lect 12 Database System

    12/21

    12

    What is a Database System?

    ApplicationApplication Programs/Queries

    Software to Process

    Queries/Programs

    Software to Access

    Stored Data

    DATABASE SYSTEMDATABASE SYSTEM

    DBMS SOFTWARE

    Users/Programmers

    Stored Database

    Definition

    (Meta-Data)

    Stored

    Database

    DBMSDBMS

    ++DatabaseDatabase

    ==

    Database SystemDatabase System

  • 8/8/2019 Lect 12 Database System

    13/21

    13

    Database System Components

    T

    he Stored Database A collection of related facts The DBMS The software that defines, constructs and

    manipulates a database

    The Applications The programs (in specific languages) that

    manipulate the database The Users

    People who use the database system, throughthe DBMS interface or through applicationprograms

  • 8/8/2019 Lect 12 Database System

    14/21

    Database Users

    Database administrators: responsible for authorizingaccess to the database, for coordinating andmonitoring its use, acquiring software, and hardwareresources, controlling its use and monitoring

    efficiency of operations. Database Designers: responsible to define the

    content, the structure, the constraints, and functionsor transactions against the database. They must

    communicate with the end-users and understandtheir needs.

    End-users: they use the data for queries, reports andsome of them actually update the database content.

  • 8/8/2019 Lect 12 Database System

    15/21

    Levels of Abstraction

    Views describe howusers see the data.

    Conceptual schemadefines logicalstructure

    Physical schemadescribes the files andindexes used.

    Physical Schema

    Conceptual Schema

    View 1 View 2 View3

    DB

    Users

  • 8/8/2019 Lect 12 Database System

    16/21

    Functions of DBMS

    Transaction Management

    Concurrency Control

    Recovery Management Security Management

    Language Interface

    Storage Management Data Catalog Management

  • 8/8/2019 Lect 12 Database System

    17/21

    Type of Database

    Operational Database : It stores detailed dataneeded to support the business process andoperations of the company

    Distributed Database : Many organizationsreplicate and distribute copies or part ofdatabase to network server

    External Database : Database which is not

    owned by the company

    Hypermedia Database : Advanced Databasewhich uses hyper linking

  • 8/8/2019 Lect 12 Database System

    18/21

    What is Data Warehousing?

    Data warehousing is subject-oriented, integrated,time-variant, and non-volatile collection of data insupport of managements decision-making process.

    a data warehouse is data management and dataanalysis tool

    Data webhouse is a distributed data warehouse thatis implement over the web with no central datarepository

    goal: is to integrate enterprise wide corporate datainto a single reository from which users can easilyrun queries

  • 8/8/2019 Lect 12 Database System

    19/21

    Components of Data Warehouse

    Summarized Data

    Operational System ofRecords

    Integration/Transformation Program Current Detail

    Meta Data

    Archives

  • 8/8/2019 Lect 12 Database System

    20/21

    Data Warehouse Organization

    I/T P Current Detail ArchiveOSR

    Meta DataL S/D

    H

    S/D

  • 8/8/2019 Lect 12 Database System

    21/21

    The benefits of data warehousing

    The potential benefits of data warehousing

    are high returns on investment..

    substantial competitive advantage.. increased productivity of corporate decision-

    makers..