the database mis report

35
Name of Presenter Position Department/College (click View>>Master>>Slide Master to edit) THE DATABASE Anna Marie G. Balita MBBA

Upload: anna-marie-garcia-balita

Post on 15-Dec-2015

21 views

Category:

Documents


2 download

DESCRIPTION

The Database MIS Report

TRANSCRIPT

Page 1: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

THE DATABASE

Anna Marie G. BalitaMBBA

Page 2: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

What is database?

A database is a collection of information that is organized so that it can easily be accessed,

managed, and updated.

Data can be maintained in one of two ways:

Traditional File Approach - no mechanism for tagging, retrieving, or manipulating data

Database Approach - provides powerful mechanism for managing and manipulating data

Page 3: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

The Traditional File ApproachDuplicate Data

Page 4: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Drawbacks of Traditional File Approach

Program-Data Dependence• The physical structure and storage of the data files are defined in

the application program code. Making changes to an existing structure are difficult and leads to modification of program which are time-consuming and subject to error.

Data Redundancy (Duplication of data)• Different systems/programs have separate copies of the same data• Multiple file formats, duplication of information in different files

- Waste of space- Data changes in one file could cause inconsistencies- Compromises in data integrity

Page 5: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Drawbacks of Traditional File Approach

Limited Data Sharing• No centralized control of data

- Each application has its own private files & users has little chance to share data outside their own applications

Lengthy Development Times• For each new application programmers must design their own file

formats & descriptions from scratch

Difficulty in accessing data • Need to write a new program to carry out each new task

Page 6: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

The Database Approach

• Central repository of shared data• Data is managed by a controlling agent• Stored in a standardized, convenient form

Requires a Database Management System (DBMS)

Page 7: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Database Management System A software system that is used to create, maintain, and provide

controlled access to user databases

Order Filing System

Invoicing System

Payroll System

DBMSCentral database

Contains employee,order, inventory,

pricing, and customer data

Page 8: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Advantages of Database Approach

Program-data independence

Control data redundancy• Attempts to eliminate data duplication by integrating the file

Improved data consistency and integrity• Provides the validity and consistency of stored data

Improved data sharing• Database belongs to the entire organization and can be shared

by all authorized users

Page 9: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Advantages of Database Approach

Improved security• Provides protection of the data from the unauthorized users

Enforcement of standards• The integration of the database enforces the necessary standards

including data formats, documentation standards, update procedures and access rules.

Improved data accessibility and responsiveness• By having an integration in the database approach, data accessing

can be crossed departmental boundaries which provides more functionality and better services to users

Page 10: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Disadvantages of Database Approach

Complexity• DBMS is a complex software. All parties must be familiar with its

functionality.

Size• DBMS consumes a substantial amount of main memory as well as

a large amount of disk space in order to make it run efficiently.

Cost• A multi-user DBMS may be very expensive and usually have high

recurrent annual maintenance cost.

Page 11: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Disadvantages of Database Approach

Cost of conversion• When moving from traditional file-based system to a database

system, the company is required to have additional expenses and training cost.

Performance• As the database approach is to cater for many applications rather

than exclusively for a particular one, some applications may not run as fast as before.

Page 12: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

The Database Approach

In the database approach, data pieces are organized about entities, - any object about which an organization chooses to collect data, such as people, events, products.

DATA HIERARCHY

Page 13: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

The Data Hierarchy

Data Hierarchy refers to the systematic organization of data, often in a hierarchical form. A computer system organizes data in a hierarchy that starts

with bits and bytes and progresses to fields, records, files, and databases.

CHARACTER smallest piece of data, usually a letter or a digit

FIELD single piece of information about entity

RECORD collection of related fields

FILE collection of related records

DATABASE collection of files

Page 14: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Page 15: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

The Database ApproachDatabase fields are not limited to holding text and numbers. They can hold pictures, sounds, video clips, and even spreadsheets. Fields can hold any

content that can be digitized.

Page 16: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

How data is accessed on the database?

Data is accessed in a database by sending query, a message to the database requesting data from specific records and/or fields and direct the computer to display the results. Modern DBMSs provide fairly user-friendly means of querying a database.

The Database Approach

Page 17: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Security and Privacy Issues

Database must be properly secured Not everyone should have access to all data

- Restricting access is managed by customizing menus fordifferent users and requiring users to enter codes that limit access to certain fields or records.

- The database administrator (DBA) sets user limits for access to data in the database.

Users will have different views of the database, based on the data they are allowed to see

The Database Approach

Page 18: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

The Database Approach

Page 19: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

The Database Approach

Different views from the same

database

Page 20: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Database Models

A database model is the general logical structure in which records are stored within a database and the method used to establish relationships among the records.

Database models differ in:- How records are linked to each other- How users can navigate the database, retrieve records, and create records

Page 21: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Database Models

Common Data Models:

• Hierarchical Model• Network Model• Relational Model• Object-Oriented Model

The relational model is the most widely used model today.

Page 22: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Hierarchical Model

In a hierarchical model, the data is organized into a tree-like structure.

The structure allows repeating information using parent/child relationships: each parent can have many children but each child only has one parent. This structure is simple but nonflexible because the relationship is confined to a one-to-many relationship.

These models were popular in late 1960s, and in 1970. The most widely used hierarchical databases is IMS developed by IBM.

Page 23: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Examples of hierarchical data represented as relational tables

In this model, the employee data table represents the "parent" part of the hierarchy, while the computer table represents the "child" part of the hierarchy. As shown, each employee may possess several pieces of computer equipment, but each individual piece of computer equipment may have only one employee owner.

Page 24: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Network Model

The network model is a variation on the hierarchical model – allowing each record to have multiple parent and child records. Network models generally implement the set relationships by means of pointers that directly address the location of a record on disk. This gives excellent retrieval performance, at the expense of operations such as database loading and reorganization.

Some well known DBMS using Network Model:• Honeywell IDS (Integrated Data Store)• IDMS (Integrated Database Management

System)

Page 25: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Relational ModelThe relational model represents the database as a collection of relations.

Each relation resembles a table of values.

When a relation is thought of as a table of values, each row in the table represents a collection of related data values.

• To design a relational database, you must understand the entities to be stored in the database and how they relate

• Tables are independent of each other, but can be related to each other

Page 26: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Relational Model

A row is called a tuple A column header is called an attribute The table is called relation

Page 27: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Relational Keys

To retrieve records from a relational database, or to sort them, you must use a key. A key is a field whose values identify records either for display or for processing. You can use any field as a key.

Keys are crucial to a table structure for the following reasons:

They ensure that each record in a table is precisely identified. They help establish and enforce various types of integrity.  They serve to establish table relationships. 

Page 28: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Relational Keys

Super Key A Super key is any combination of fields within a table that uniquely identifies each record within that table.

Candidate Key A candidate is a subset of a super key. A candidate key is a single field or the least combination of fields that uniquely identifies each record in the table. The least combination of fields distinguishes a candidate key from a super key. Every table must have at least one candidate key but at the same time can have several.

Page 29: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Relational Keys

As an example, we might have a student_id that uniquely identifies the students in a student table. This would be a candidate key. But in the same table we might have the student’s first name and last name that also, when combined, uniquely identify the student in a student table. These would both be candidate keys.

Page 30: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Relational Keys

Primary Key A primary key is a candidate key that is most appropriate to be the main reference key for the table. As its name suggests, it is the primary key of reference for the table and is used throughout the database to help establish relationships with other tables.

The primary key must contain unique values, must never be null and uniquely identify each record in the table. In the given table, the candidate key student_id is the most appropriate primary key

Page 31: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Relational KeysForeign Key A foreign key is generally a primary key from one table that appears as a field in another where the first table has a relationship to the second

An example might be a student table that contains the course_id the student is attending. Another table lists the courses on offer with course_id being the primary key. The 2 tables are linked through course_id and as such course_id would be a foreign key in the student table

Page 32: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Relational Model

Join TableA combination of data from two or more tables. A table might include foreign keys from several tables, offering flexibility in creating reports with related data from several tables.

Two types of table relationships:• One-to-many relationship: one item in a table is linked to many

items in the other table• Many-to-many relationship: many items in a table are linked to

many items of the other table

Page 33: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Object-Oriented ModelThe object-oriented database model uses the object-oriented

approach to maintaining records. In object-oriented technology, an object consists of both data and the procedures that manipulate the data.

EncapsulationThe combined storage of both data and the procedures that manipulateit. Through encapsulation, an object can be “planted” in different data sets.

InheritanceThe ability in object-oriented structures to create a new object automatically by replicating all or some of the characteristics of a previously developed object (called the parent object).

Page 34: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)

Object-Oriented Model The relationships between data about entities are not managed by way of

foreign keys, but through the relationships of one object with another.

One advantage of this approach is the reduction of data redundancy.

Object-oriented databases (ODBs) do not store records, but data objects(such as drawings, maps and Web pages), which is an advantage for quick updates of data sets and the relationships among them.

All these capabilities make object-oriented DBMSs handy in computer-aided design (CAD), geographic information systems, and applications used to update thousands of Web pages daily, because they can handle a wide range of data—such as graphics, voice, and text—more easily than the relational model.

Page 35: The Database MIS Report

Name of PresenterPositionDepartment/College(click View>>Master>>Slide Master to edit)