MELJUN CORTES - Database and Database Management

Embed Size (px)

Citation preview

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    1/39

    The Database and Database

    Management System

    9-1

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    2/39

    Data Organization

    Data Field

    Smallest unit of data

    RecordCollection of related fields

    File

    Collection of related records

    9-2

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    3/39

    Data Organization (cont.)

    Folders

    Collection of related files

    Conceptually similar to a branch of the tree Subfolder

    A folder within a folder

    Movement of folders using GUI

    9-3

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    4/39

    Organization of Data into Folders

    9-4

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    5/39

    Common Models for

    Organizing Data Files

    1. Function

    2. Frequency of Use3. Users

    4. Projects

    9-5

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    6/39

    Fundamental Building Blocks for

    Database Structures

    1. Data Value

    2. Data Field3. Data Record

    4. Data File

    9-6

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    7/39

    Spreadsheet as a Simple

    Database

    Rows and columns of a spreadsheet can be

    regarded as a simple database

    Flat filesDoes not have repeating columns

    Spreadsheet table is a file and column is a field

    Key fieldsContains a value to uniquely identify each

    record in a table

    9-7

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    8/39

    Data Structure vs. Spreadsheet

    Terminology

    Spreadsheet Term Data Structure Term

    Table File

    Column Field

    Row Record

    9-8

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    9/39

    Database Structures

    Database

    All data stored on computer-based resources of

    the organization Database Management System (DBMS)

    Software application that stores the structure of

    the database, the data itself, relationships

    among the data in the database, as well as forms

    and reports pertaining to the database

    9-9

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    10/39

    Database Structures (cont.)

    Hierarchical structure

    Uses the parent / children concept

    Limitation: Cannot handle ad hoc requests

    First DBMS was IDS by GE in 1964

    CODASYL

    Network structure

    Allow given record to point back to any other

    record in the database

    Specification released by CODASYL in 1971

    Solves problem of having to backtrack through

    data 9-10

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    11/39

    Database Structures (cont.)

    Relational structure

    Rows and columns

    Frees designers from need to specifyrelationships prior to building the database

    Date and Codd described structure

    Does not rely on physical relationships

    Easy to understand

    9-11

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    12/39

    Relational Database Vendors

    1. IBM

    2. Informix Software, Inc.3. Microsoft

    4. Oracle

    5. Sybase

    9-12

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    13/39

    The Database Concept

    Database conceptLogical integration of records in multiple files

    Data redundancy

    Duplication of data

    Data inconsistency

    Data independence

    Keep data specifications separate from

    programs, in tables and indexes

    9-13

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    14/39

    Tables

    Book Name Author Required

    Banking Principles Knox 25

    Management Information Systems 8E McLeod and Schell 75

    Personal Sales Techniques Wei 70

    Quality Service, Quality Customer Brutus 54

    9-14

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    15/39

    Description of Book Table

    9-15

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    16/39

    Description of Student Table

    9-16

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    17/39

    Table Relationships

    9-17

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    18/39

    Salespersonfile

    Salesstatistics

    file

    Customerfile

    Accountsreceivable

    file

    Buyer

    file

    Inventory

    file

    Vendorfile

    Accountspayable

    file

    Purchase

    order

    file

    General

    ledger

    file

    A Database Consists of One or More Files9-18

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    19/39

    Evolution of Database Software

    GEs IDS first example

    Used with COBOL

    IBMs IMSApollo project

    Interface Issues

    Intels System 2000, RAMIS, IDMS, InquireQuery language interface

    9-19

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    20/39

    Evolution of Database

    Software (cont.)

    SEQEL from IBM

    Continuation of IMS

    Renamed SQLStructured Query language

    Embedded within traditional language

    Standalone

    PC database packages

    dBase II

    MS-Access9-20

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    21/39

    Creating a Database

    Two approaches:

    1. Process oriented approach (problem-solving)

    2. Enterprise modeling

    9-21

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    22/39

    Definethe Problem

    Identify necessarydecisions

    Describeinformation needs

    Determine

    the necessaryprocessing

    Specifydata needs

    1.

    2.

    3.

    4.

    5.

    6.

    Data Needs

    Can BeDefined by

    Taking a

    Problem-

    Oriented

    Approach

    DataSpecifications

    9-22

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    23/39

    Create

    enterprise

    data model

    Develop

    Database

    Database

    2.

    1.

    Strategic Planning for Information Resources

    Data Needs CanBe Defined by

    Creating an

    EnterpriseModel

    Enterprise

    Data Model

    9-23

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    24/39

    Describing the Database Contents

    Data dictionary

    Enter

    dictionary data

    Data description

    language (DDL)

    Schema

    Step 1

    Step 2

    9-24

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    25/39

    Schema

    Data field name

    Aliases (other names used for same data

    field) Type of data (numeric alphabetic)

    Number of positions

    Number of decimal positions

    Various integrity rules

    9-25

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    26/39

    Rule for Required Field

    9-26

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    27/39

    Enforcing Value of BookName

    9-27

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    28/39

    Creating a Database

    1) Describe the data

    2) Enter the data

    3) Use the databaseQuery language

    Query-by-example

    Data manipulation language (DML)

    9-28

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    29/39

    Query-by-Example

    9-29

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    30/39

    On-Line Analytical Processing

    (OLAP)

    Feature to enable data analysis similar to

    statistical cross-tabulation

    Information can be generated from withinDBMS

    No need for separate statistical software

    9-30

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    31/39

    Example OLAP Output

    Marital Status

    Married Single

    Cash $752 $849

    Payment Credit $1,277 $2,019

    Method Check $283 $165

    9-31

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    32/39

    The Database Administrator

    (DBA)

    D B A Duties

    Database planning; work with users and

    others, define schema, etc. Database implementation; creating the

    database and enforcing policies and

    procedures Database operations

    Database security9-32

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    33/39

    Datadescriptionlanguageprocessor

    Database manager

    Querylanguage

    Data manipulationlanguage (DML)

    Application programs

    Databasedescription(schema)

    Database

    Informationrequests

    Information

    Transactionlog

    Backup/recoverymodule

    Performancestatistics

    Performancestatistics

    processor

    Performancestatistics

    A DBMS

    Model

    9-33

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    34/39

    Knowledge Discovery in

    Databases (KDD)

    Data warehousing

    refinement in the database concept to make it

    very large very pure

    very retrievable

    Data mart

    a more modest approach than data

    warehousing, generally only one segment of

    the firm9-34

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    35/39

    Knowledge Discovery in

    Databases (KDD) (cont.)

    Data mining

    the process of finding relationships in data

    that are unknown to the user

    may be for

    verification

    discovery combination of verification and discovery

    9-35

    Th K l d Di i

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    36/39

    The Knowledge Discovery in

    Database (KDD) Process

    1. Define the data and the task

    2. Acquire the data

    3. Clean the data

    4. Develop the hypothesis and search model

    5. Mine the data

    6. Test and verify

    7. Interpret and use

    9-36

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    37/39

    DBMS Advantages

    Reduce data redundancy

    Achieve data independence

    Enable integration of data from multiplefiles

    Retrieve data and information quickly

    Improve security

    9-37

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    38/39

    DBMS Disadvantages

    Obtain expensive software

    Obtain a large hardware configuration Hire and maintain a DBA staff

    9-38

    Requires a firm to:

  • 8/9/2019 MELJUN CORTES - Database and Database Management

    39/39

    Summary

    Organizations are storing vast amounts of

    data

    Organization and structures in database

    Dominated by relational

    Staff positions

    DBA

    Knowledge discovery in databases

    Database management systems9-39