+ All Categories
Home > Technology > 08 sip database

08 sip database

Date post: 22-Nov-2014
Category:
Upload: ikhsan-bz
View: 462 times
Download: 2 times
Share this document with a friend
Description:
 
33
Transcript
Page 1: 08 sip database
Page 2: 08 sip database

File Organization Terms and Concepts

Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits that represents a single character, can be a letter, number, or another symbol Field: Grouping of characters into a word, group of word or complete number (such as person name or age)

Page 3: 08 sip database

Record: Group of related fields, such as student name, course taken, date, and grade

File: Group of records of same type

Database: Group of related files

Page 4: 08 sip database

Data Hierarchy in a Computer System

Low

High

Page 5: 08 sip database

Data redundancy

Poor security

Lack of data sharing and availability

Masalah dalam Lingkungan File Tradisional

Page 6: 08 sip database

Traditional File Processing

Page 7: 08 sip database

Data redundancy: duplicate data in multiple data files so that the same data are stored in more than place or location. Occure when different groups in an

organization independently collect the same pice of data and sore it independently of each other.

Lead to data inconsistency and waste storage resource

Page 8: 08 sip database

Poor of securityBecause there is little control of data management, who can access or disseminate information

Page 9: 08 sip database

Lack of data sharing and availability Information can’t flow freely across

different functional areas or different part of the organization

Page 10: 08 sip database

Rainer & Cegielski, 3/e, Wiley. Edited & revised by Zhang4-10

Jessup&Valacich: Database – a

collection of related data organized in a way to facilitate data searches

Laudon & Laudon:A database is A collection of data

Organized to efficiently serve many applications

by centralizing the data and

minimizing redundant data

Page 11: 08 sip database

Rainer & Cegielski, 3/e, Wiley. Edited & revised by Zhang4-11

DBMS – Database Management Systems It is a software used to

1. create, 2. store, 3. organize, 4. update, and 5. retrievedata, from a single database or several

databases [in a desirable arrangement/format, that

can be specified by the users in an easy way]

Page 12: 08 sip database

Database management system (DBMS)

software that permits an organization to centralize data, manage them efficiently, and provide access to the stored data by application program

interface between application programs and the physical data files

Page 13: 08 sip database

Rainer & Cegielski, 3/e, Wiley. Edited & revised by Zhang 4-13

Database management system (DBMS) provides all users with access to all the data.

DBMSs minimize the following problems:Data redundancyData isolationData inconsistency

DBMSs maximize the following issues:Data securityData integrityData independence

Page 14: 08 sip database

• Separates logical view and physical views of dataSeparates logical view and physical views of data• Logical viewLogical view: information focus on how users : information focus on how users

logically access information to meet their logically access information to meet their particular business needsparticular business needs

• Physical viewPhysical view: show how data actually organized : show how data actually organized on physical storage mediaon physical storage media

Page 15: 08 sip database

The Contemporary Database Environment

Page 16: 08 sip database

Types of Databases

• Relational DBMSRelational DBMS

• Hierarchical and Network DBMSHierarchical and Network DBMS

• Object-Oriented DatabasesObject-Oriented Databases

Page 17: 08 sip database

Entity: Person, place, thing, transaction, or event about which information is stored

Entity class: often called a table is collection of similar entityExample: A customer is an entity

Primary Concept of RDBS

Relational DBMS

Page 18: 08 sip database

Attribute: Description of a particular entity, also called fields or column, are characteristics or properties of an entity class

Example: A CUSTOMER entity can be described by a

Customer Number, First Name, Last Name, Street, City, State, Zip Code, Phone Number, Credit Card No, and Credit Card Exp

Page 19: 08 sip database

Key field: Identifier field used to retrieve, update, sort a record

Record: a collection of related attributes/fields about a single entity

Page 20: 08 sip database

Key field

Entities, Attributes (column, field), Key field

Page 21: 08 sip database

Rainer & Cegielski, 3/e, Wiley. Edited & revised by Zhang4-21

Entitities and Attributes (Laudon, w Zhang’s editing)

Fields

Value of attributes / fields

4345 02/09/01 1765 8 13.75

Records

Page 22: 08 sip database

• RDBMS DefinitionRDBMS Definition• Represents data as two-Represents data as two-

dimensional tables called relationsdimensional tables called relations

• Relates data across tables based on Relates data across tables based on common data elementcommon data element

• Examples: DB2, Oracle, MS SQL Examples: DB2, Oracle, MS SQL ServerServer

Page 23: 08 sip database

Relational Data Model

Page 24: 08 sip database

Three Basic Operations in a RDBMS

• Select:Select: Creates subset of rows that meet specific Creates subset of rows that meet specific criteriacriteria

• Join:Join: Combines relational tables to provide users Combines relational tables to provide users with informationwith information

• Project:Project: Enables users to create new tables Enables users to create new tables containing only relevant informationcontaining only relevant information

Page 25: 08 sip database

Three Basic Operations in a Relational Database

Page 26: 08 sip database

A row in a relation has the following properties:Only one value at the intersection of a column and row - a relation does not allow multi-valued attributes

Uniqueness - there are no duplicate rows in a relation

Page 27: 08 sip database

Key field: Identifier field used to retrieve (re-search), update, sort a recordPrimary key - a field (or group of

fields) that uniquely identifies a given entity in a table

Foreign key - a primary key of one table that appears as an attribute in another file and acts to provide a logical relationship between the two files

Page 28: 08 sip database

• Primary Key– A unique primary key makes it possible

to uniquely identify every row in a table– Primary key are provide way of

distinguishing each entity in a table– A primary key should never change and

cannot duplicated• Ex.: customer number

Page 29: 08 sip database

Foreign KeyWhen a table contains a column that is the

same as the primary key of a table, the column is called a foreign key

Foreign key - a primary key of one table that appears as an attribute in another file and acts to provide a logical relationship between the two files Ex.: item number

Page 30: 08 sip database

The use of identifiers represent relationships between entities

Page 31: 08 sip database

Hierarchical DBMSHierarchical DBMS

• One of type DBMSOne of type DBMS

• Organizes data in a tree-like structureOrganizes data in a tree-like structure

• Supports one-to-many parent-child Supports one-to-many parent-child relationshipsrelationships

Page 32: 08 sip database

Hierarchical DBMS

Page 33: 08 sip database

Recommended