Top Banner

of 40

Database Management Systems.pptx

Jun 02, 2018

Download

Documents

Prem Shankar
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/10/2019 Database Management Systems.pptx

    1/40

    Database Management Systems

    An introduction

    January 11, 2015 1EED, NIT Calicut

  • 8/10/2019 Database Management Systems.pptx

    2/40

    Database System

    A very large integrated collection of data of

    the entities and relationships

    Database system tries to model the real world

    systems and the underlying hierarchies, data

    (information)flows etc.

    A Database Management System (DBMS) is a

    software package designed to store and

    manage databases.

    January 11, 2015 EED, NIT Calicut 2

  • 8/10/2019 Database Management Systems.pptx

    3/40

    Why Study Databases?

    Many computing applications deal with large

    amounts of information

    Database systems give a set of tools for storing,

    searching and managing this information

    Databases are a core topic in computer science

    Basic concepts and skills with database systems

    will help Engineers to deal with many computerizedinformation systems, CAD tools, GIS, etc

    January 11, 2015 EED, NIT Calicut 3

  • 8/10/2019 Database Management Systems.pptx

    4/40

    Informatics

    Study of database systems has graduated as a

    major field of specialization namely

    Informatics

    Eg. Bioinformatics

    January 11, 2015 EED, NIT Calicut 4

  • 8/10/2019 Database Management Systems.pptx

    5/40

    Data and Database

    A database is a collection of related data

    By data we mean known facts that can be

    recorded and that have implicit meaning

    Eg. The name of a person becomes data for

    the Institute if he/she is a student or

    employee or supplier or examiner or some of

    that kind of relation exists

    January 11, 2015 EED, NIT Calicut 5

  • 8/10/2019 Database Management Systems.pptx

    6/40

    Database

    A database has many implicit properties

    1. A database represents some aspects of the

    real world sometimes called the mini world

    or the Universe of Discourse(UoD)

    Changes to the mini world are reflected in

    the database

    January 11, 2015 EED, NIT Calicut 6

  • 8/10/2019 Database Management Systems.pptx

    7/40

    Properties of database

    2. A database is a logically coherent collection of

    data with some inherent meaning. A random

    assortment of data cannot correctly be

    referred to as a database

    January 11, 2015 EED, NIT Calicut 7

  • 8/10/2019 Database Management Systems.pptx

    8/40

    Properties of database

    3. A database is designed, built and populated

    with data for a specific purpose. It has an

    intended group of users and some pre

    conceived applications in which these users

    are interested.

    January 11, 2015 EED, NIT Calicut 8

  • 8/10/2019 Database Management Systems.pptx

    9/40

    Properties of database

    4. A database can be of any size and of varying

    complexity

    5. A database may be generated and maintained

    manually or it may be computerized

    For small scale use, computerization is a waste

    but for large scale application computerization

    is very complex but highly effective in

    management, reporting monitoring etc

    January 11, 2015 EED, NIT Calicut 9

  • 8/10/2019 Database Management Systems.pptx

    10/40

    Properties of database

    6. A computerized database may be created andmaintained either by a group of applicationprograms written specifically for that task or by adatabase management system

    Commercial DBMS

    ORACLE

    SAP

    DBFOXPRO

    MS ACCESS

    January 11, 2015 EED, NIT Calicut 10

  • 8/10/2019 Database Management Systems.pptx

    11/40

    Database Management System(DBMS)

    A database management system(DBMS) is a

    collection of programs that enables users to

    create and maintain database. A DBMS helps

    in

    Defining

    Constructing

    Manipulating

    For various applications

    January 11, 2015 EED, NIT Calicut 11

  • 8/10/2019 Database Management Systems.pptx

    12/40

    Defining Database

    Specifying the data types

    Defining structures for the data

    Specifying the constraints

    January 11, 2015 EED, NIT Calicut 12

  • 8/10/2019 Database Management Systems.pptx

    13/40

    Constructing Database

    Building the database on a suitable medium

    MS ACESS works on PC environment

    SAP works on large systems

    ORACLE can be customized to PC or LAN or even

    Distributed Systems

    January 11, 2015 EED, NIT Calicut 13

  • 8/10/2019 Database Management Systems.pptx

    14/40

    Manipulating Database

    Querying the database to retrieve specific

    data

    Updating the database to reflect changes in

    the mini world

    Generating reports from the data

    January 11, 2015 EED, NIT Calicut 14

  • 8/10/2019 Database Management Systems.pptx

    15/40

    Database System

    A database system consists of the DATABASE andthe DBMS Software

    MIS- Management Information System

    DSS-Decision Support System ERP-Enterprise wide Resource Planning solution

    DCS-Distributed Control System

    SCADA-Supervisory Control & Data Acquisition system

    End to End Solution(Total Solution for all functionalrequirements)

    Custom Solution(Partial solution for a particular purpose)

    January 11, 2015 EED, NIT Calicut 15

  • 8/10/2019 Database Management Systems.pptx

    16/40

    Characteristics of DBMS

    Program-Data independence

    The structure of the data files is stored in the

    DBMS catalog separately from the access

    programs

    Program-Operation independence

    January 11, 2015 EED, NIT Calicut 16

  • 8/10/2019 Database Management Systems.pptx

    17/40

    Data Modeling

    Data modeling is very essential to understand theextent and variety of information that are to be

    collected and stored to serve the intended

    purpose

    The more deeper the understanding of the systemfunctions, interdependence and the end user

    requirements or the purposes, the better will be

    the data models we develop

    January 11, 2015 EED, NIT Calicut 17

  • 8/10/2019 Database Management Systems.pptx

    18/40

    Data Modeling

    Data modeling begins with the use of high

    level conceptual data models for database

    design

    Data modeling involves four steps\

    Requirement collection and analysis

    Conceptual Design

    Implementation of database

    Physical design phase

    January 11, 2015 EED, NIT Calicut 18

  • 8/10/2019 Database Management Systems.pptx

    19/40

    Requirement collection and analysis

    - Interview with prospective database users

    - Understand and document their datarequirements

    - Understand the functional requirements ofthe applications

    - Know the user defined

    operations(transactions) that will be appliedto the database

    - Know the retrievals and updates needed

    January 11, 2015 EED, NIT Calicut 19

  • 8/10/2019 Database Management Systems.pptx

    20/40

    Conceptual Design

    Create a conceptual schema for the database usinga conceptual high level data model

    -it will give a concise description of the datarequirements of the users

    -it do not contain the implementation details

    -it can be used for communicating with the nontechnical users

    -it can also be used to analyze the extent to whichthe users data requirements are met and thatthe conflicts are resolved/avoided

    January 11, 2015 EED, NIT Calicut 20

  • 8/10/2019 Database Management Systems.pptx

    21/40

    Implementation of database

    3. The next step after data model/design is theactual implementation of the database, usinga commercial DBMS

    -for this we need data model mapping(logicaldesign)

    -this converts the high level data model to the

    implementation data model-Fine-tuning the requirements considering thedata availability, capability of the DBMS etc

    January 11, 2015 EED, NIT Calicut 21

  • 8/10/2019 Database Management Systems.pptx

    22/40

    Physical design phase

    Internal storage structures

    Access modes/paths

    File organization for the database files

    January 11, 2015 EED, NIT Calicut 22

  • 8/10/2019 Database Management Systems.pptx

    23/40

    Going to the Mini World!!

    January 11, 2015 EED, NIT Calicut 23

  • 8/10/2019 Database Management Systems.pptx

    24/40

    Data Modeling using Entity &

    Relationship Model

    EntityRelationship(ER) Model is a popular

    high level conceptual data model

    The ER model describes data as entities,

    relationships and attributes

    January 11, 2015 EED, NIT Calicut 24

  • 8/10/2019 Database Management Systems.pptx

    25/40

    January 11, 2015 EED, NIT Calicut 25

    STUDENT

    NAME

    BRANCH

    COURSE

    ROLLNOADMYEAR

    GRADE

    CREDIT

  • 8/10/2019 Database Management Systems.pptx

    26/40

    January 11, 2015 EED, NIT Calicut 26

    COURSE

    CODE TITLE

    CREDIT

    SLOTTYPE

    DEPT

  • 8/10/2019 Database Management Systems.pptx

    27/40

    January 11, 2015 EED, NIT Calicut 27

    FACULTY

    EMPCODENAME

    DESIG

    COURSE

    DEPT

  • 8/10/2019 Database Management Systems.pptx

    28/40

    January 11, 2015 EED, NIT Calicut 28

    FACULTY STUDENT

    COURSE

    OFFER

    CREDIT

    ADVISE

  • 8/10/2019 Database Management Systems.pptx

    29/40

    Entity, Attributes and Data

    The ER model describes data as entities,

    relationships and attributes

    Entities and Attributes

    The basic object that the ER model represent is an

    entity, which is a thing in the real world with an

    independent existence

    Physical existence-person, car, grocery item,

    Conceptual existence-company, job, university course,

    January 11, 2015 EED, NIT Calicut 29

  • 8/10/2019 Database Management Systems.pptx

    30/40

    Entity & Attributes

    Each entity has attributes

    These are particular properties that describe it

    A particular entity will have a value for each of

    its attributes(may be at a given instant of

    time)

    The attribute value that describe each entity

    become a major part of the data

    January 11, 2015 EED, NIT Calicut 30

  • 8/10/2019 Database Management Systems.pptx

    31/40

    Types of Attributes

    Several types of attributes occur to the ER

    model

    Simple vs composite

    Single valued vs multivalued

    Stored vs derived

    January 11, 2015 EED, NIT Calicut 31

  • 8/10/2019 Database Management Systems.pptx

    32/40

    Composite vs Simple

    Eg. Name can be a composite attribute if we

    want to separate sirname, first name etc

    Composite attributes can be divided into

    smaller sub parts which represent more basic

    attributes with independent meanings

    The value of a composite attribute is the

    concatenation of the values of the constituent

    simple attributes

    January 11, 2015 EED, NIT Calicut 32

  • 8/10/2019 Database Management Systems.pptx

    33/40

    Single vs multivalued

    Most attributes have a single value for aparticular entity. Such attributes are calledsingle valued

    Employee is an entity

    Data of Birth single valued attribute

    Qualification multivalued attribute

    A multivalued attribute may have a lower andupper bound on the number of values allowedfor each individual entity

    January 11, 2015 EED, NIT Calicut 33

  • 8/10/2019 Database Management Systems.pptx

    34/40

    Stored vs Derived

    Some attribute like Age can be derived from

    another attribute DateofBirth

    Some attributes can be derived from related

    entities

    January 11, 2015 EED, NIT Calicut 34

  • 8/10/2019 Database Management Systems.pptx

    35/40

    NULL Value

    A particular entity may not have an applicable

    value for an attribute

    For such situations, a special value called NULL

    is created

    Situations

    Missing data(data not entered)

    Not known values

    Not applicable attribute

    January 11, 2015 EED, NIT Calicut 35

  • 8/10/2019 Database Management Systems.pptx

    36/40

    Entity type & Entity set

    A database usually contains groups of entitiesthat are similar

    An entity type defines a collection(or set) of

    entities that have the same attribute The collection of all entities of a particular

    entity type in the database at any point intime is called an entity set

    Entity type and entity set can be given thesame name

    January 11, 2015 EED, NIT Calicut 36

  • 8/10/2019 Database Management Systems.pptx

    37/40

    Key Attribute

    An important constraint on the entities of an

    entity type is the key or uniqueness constraint on

    attributes

    An entity type usually has an attribute whosevalues are distinct for each individual entity in the

    collection

    Such an attribute is called a key attribute and itsvalue can be used to identify each entity uniquely

    Several attributes could together form key

    January 11, 2015 EED, NIT Calicut 37

  • 8/10/2019 Database Management Systems.pptx

    38/40

    Entity & Relationships

    Between entities of different type, there exists

    relations which makes the data composite and

    interdependent for a given database

    January 11, 2015 EED, NIT Calicut 38

  • 8/10/2019 Database Management Systems.pptx

    39/40

    Types of Relationships

    One to One

    One to Many

    Many to One

    Many to Many

    January 11, 2015 EED, NIT Calicut 39

  • 8/10/2019 Database Management Systems.pptx

    40/40

    J 11 2015 EED NIT C li 40

    FACULTY STUDENT

    COURSE

    OFFER

    CREDIT

    ADVISE