advanced management information system - itacademic.iritacademic.ir/upload/mis-6.pdf · • the...

60
Advanced Management Information System Dr. Ebadati University of Economic Science

Upload: truongkhuong

Post on 08-Sep-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Advanced Management Information System

Dr. Ebadati

University of Economic Science

Page 2: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

پايگاه داده و نحوه طراحي آن

Page 3: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

The Traditional Approach Versus

the Database Approach • Traditional approach: separate data files are

created for each application • Results in data redundancy (duplication) • Data redundancy conflicts with data integrity

• Database approach: pool of related data is shared by multiple applications

• Significant advantages over traditional approach

Page 4: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

The Traditional Approach Versus the Database Approach (continued)

• The Traditional Approach to Data Management

Page 5: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

The Traditional Approach Versus the Database Approach (continued)

• The Database Approach to Data Management

Page 6: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

The Traditional Approach Versus the Database Approach (continued)

• Advantages of the Database Approach

Page 7: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

The Traditional Approach Versus the Database Approach (continued)

• Advantages of the Database Approach (continued)

Page 8: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

The Traditional Approach Versus the Database Approach (continued)

• Disadvantages of the Database Approach

Page 9: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

)اطالعاتي(طراحي پايگاه داده اي

. طراحي پايگاه داده اي را مي توان سه مرحله اي در نظر گرفت

.اطالعات شد مدلسازي مفهومي : مرحله اول

پايگاه اطالعاتي است كه مدل مفهومي اطالعات را به توصيف منطقي طراحي منطقي :مرحله دوم

سيستم مديريت (اطالعات به كار فته به وسيله يك سيستم مديريت پايگاه اطالعاتي، تبديل مي كند

) پايگاه اطالعات

پايگاه اطالعاتي است كه توصيف منطقي را به مدل فيزيكي مبدل مي طراحي فيزيك :مرحله سوم

.سازد

Page 10: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

پايگاه اطالعاتي موارد مدل منطقي و فيزيكي در حين طراحي زير بايد در نظر گرفته شوند

آتي درآن، تغييراتاطالعاتي با توجه به انعطاف پايگاه

داده ها در پايگاه انسجاماز حفاظتبراي تدابير كنترلي اطالعاتي،

،بهنگام سازي و بازيابي داده هاكارآيي سيستم

ظرفيتهاي ابزارهاي ذخيره سازي كارآيي چگونگي استفاده از .خارجي

Page 11: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

طراحي پايگاه اطالعاتي مستلزم شناخت موارد ذيل است

When building a database, consider: • Content: What data should be collected, at what cost? • Access: What data should be provided to which

users, and when? • Logical structure: How should data be arranged to

make sense to a given user? • Physical organization: Where should data be

physically located?

Page 12: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

هاي طراحي پايگاه اطالعاتي مروري كلي بر گام

Page 13: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Data Modeling

• Building a database requires two types of design:

• Logical design: Shows an abstract model of how data should be structured and arranged to meet an organization’s information needs

• Physical design: Fine-tunes the logical database design for performance and cost considerations

Page 14: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Data Modeling (continued)

• Data model: a diagram of data entities and

their relationships • Use Case • DFD • Entity-relationship (ER) diagrams: data models that

use basic graphical symbols to show the organization of and relationships between data

Page 15: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

هاي طراحي منطقي پايگاه ” ساخته“ اطالعاتي

اطالعات ساختار منطقي و فيزيكيهاي طراحي، ” ساخته“يك پايگاه اطالعاتي را تشريح مي كند ساختار منطقي

:اطالعات از چهار ساخته تشكيل مي شود

عناصر اطالعات

سابقه هاي منطقي

كليدها

روابط

Page 16: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Data Modeling (continued)

• An Entity-Relationship (ER) Diagram for a Customer Order Database

Page 17: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

The Relational Database Model

• Relational model: all data elements are placed in two-dimensional tables (relations), which are the logical equivalent of files

• In the relational model: • Each row of a table represents a data entity • Columns of the table represent attributes

• Domain: the allowable values for data attributes

Page 18: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

The Relational Database Model

(continued)

Page 19: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

عنصر اطالعات

سابقه

سابقه كليد

سابقه كليد

كليد» 1« كليد» 1«

نام مشتري

مشتري

شماره مشتري

مشتري شماره سفارش

شماره مشتري» 1« شماره وضعيت سفارش» 1«

:الف

ساخته هاي مدل منطقي اطالعات

Page 20: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

رابطه

ها بر قرار مي كند ”سابقه“رابطه، ارتباط ميان •

مياندر مدل مفهومي به رابطه ” موجوديتها“ميان روابط•

.درمدل منطقي تبديل مي شود” ها سابقه“

Page 21: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

مشتري شماره مشتري

نام مشتري نشاني پستي خيابان مشتري

محموله نشاني پستي شهر مشتري شماره محموله تاريخ محموله

نام وسيله حمل محموله

سفارش شماره سفارش

شماره وضعيت سفارش» 1« شماره صورتحساب تاريخ صورتحساب

اقالم سفارش شماره سفارش شماره محصول

شماره اقالم سفارش

2 -محصول شماره محصول

متن توصيف محصول

1 -محصول شماره محصول

مبلغ قيمت محصول

كند دريافت مي

ارسال مي شود

در بر دارد

سفارش ها

1 -محصول

2 -محصول

ساختار منطقي اطالعات پايگاه گستر اطالعاتي شركت عدالت

Page 22: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

ساختار منطقي اطالعات پايگاه اطالعاتي )ادامه(گستر شركت عدالت

” سفارش“در سابقه ” شماره مشتري“عنصر پيشين در نمودار •

.را معين مي كند” سابقه سفارش“با ” سابقه مشتري“رابطه ميان

Page 23: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

نشان دادن رابطه با استفاده از كليد خارجي

مشتري

شماره مشتري

محموله

شماره محموله

تاريخ محموله

شماره مشتري

مشتري

Page 24: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

سيستمهاي مديريت پايگاه اطالعاتي

ايجاد پايگاه اطالعاتيرهيافت داده گرا در طراحي سيستم، هدف •

بتوانند آن را مورد استفاده سيستمهاي كاربردي متعدد است كه

.قرار دهند

مدلهاي فيزيكي و منطقي در تركيب با سيستمهاي تنوع احتمالي •

كاربردي متعددي كه احتماالً نياز دسترسي به اطالعات دارند طراحي

.تبديل مي كندمساله بسيار دشواري پايگاه را به

Page 25: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

نحوه تعريف نوع داده در پايگاه اطالعات

= ، آغاز= سفارش ، بايت-شماره=نام فيلد

=مشتري ، بايت0=سفارش، سابقه مادر=نام بخش

11=، آغاز 40=مشتري ، بايت-نام=نام فيلد

1=، آغاز 10=مشتري ، بايت-شماره=نام فيلد

=، بايت0=مشتري، سابقه مادر=نام بخش

پايگاه اطالعاتي مشتري، دسترسي=نام شرح پايگاه اطالعاتي

Page 26: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Database Management Systems

(DBMS)

• Interface between • Database and application programs • Database and the user

• Database types • Flat file • Single user • Multiple users

Page 27: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Creating and Modifying the

Database • Data definition language (DDL) • –Collection of instructions/commands that

define and describe data and data relationships in a database

• –Allows database creator to describe the data and the data relationships that are to be contained in the schema and the subschemas

• •Data dictionary: a detailed description of all the data used in the database

Page 28: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Creating and Modifying the

Database (continued) • Using a Data Definition Language to Define a

Schema

Page 29: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Creating and Modifying the

Database (continued) • A Typical Data Dictionary Entry

Page 30: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Storing and Retrieving Data

• When an application requests data from the DBMS, the application follows a logical access path

• When the DBMS goes to a storage device to retrieve the requested data, it follows a path to the physical location (physical access path) where the data is stored

Page 31: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Storing and Retrieving Data

(continued) • Logical and Physical Access Paths

Page 32: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Manipulating Data and

Generating Reports (continued) • Database Output

Page 33: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Popular Database Management

Systems • Popular DBMSs for end users: Microsoft Access

and Corel Paradox • •The complete database management software

market includes databases by IBM, Oracle, and Microsoft

• •Examples of open-source database systems: PostgreSQL and MySQL

• •Many traditional database programs are now available on open-source operating systems

Page 34: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Selecting a Database Management System

• Important characteristics of databases to consider:

• Size of the database • Number of concurrent users • Performance • Ability to be integrated with other systems • Features of the DBMS • Vendor considerations • Cost of the system

Page 35: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Using Databases with Other

Software • Database management systems are often used

with other software packages or the Internet

• A database management system can act as a front-end application or a back-end application

• Front-end application: interacts with users • Back-end application: interacts with applications

Page 36: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

g

the Company Database to the Internet

• Corporate databases can be accessed by

customers, suppliers, and employees through: • The Internet • Intranets • Extranets

Page 37: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Distributed & Replicated

Databases • Distributed database

• Data may be spread across several smaller databases connected via telecommunications devices

• Corporations get more flexibility in how databases are organized and used

• Replicated database • Holds a duplicate set of frequently used data

Page 38: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

What Is an ERD? • A picture showing the information created, stored,

and used by a business system. • Entities generally represent similar kinds of

information • Lines drawn between entities show relationships

among the data

Page 39: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Using the ERD to Show Business Rules

• Business rules are constraints that are followed when the system is in operation.

• ERD symbols can show when one instance of an entity must exist for an instance of another to exist

• A doctor must exist before appointments for the doctor can be made

Page 40: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Using the ERD to Show Business Rules

• ERD symbols can show when one instance of an entity can be related to only one or many instances of another entity

• One doctor can have many patients; each patient may have only one primary doctor

• ERD symbols show when the existence of an entity instance is optional for a related entity instance

• A patient may or may not have insurance coverage

Page 41: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

An ERD Example

Page 42: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

ERD Elements

Page 43: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Entity • A person, place, event, or thing about which data is collected • Must be multiple occurrences to be an entity

• Example: If a firm has only one warehouse, the warehouse is not an entity. However, if the firm has several warehouses, the warehouse could be an entity if the firm wants to store data about each warehouse instance.

Page 44: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Entities and Instances

Page 45: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Attributes • Information captured about an entity • Only those used by the organization should be included

in the model • Attribute names are nouns • Sometimes entity name is added at the beginning of the

attribute name for clarity

Page 46: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Identifiers • One or more attributes can serve as the entity identifier,

uniquely identifying each entity instance • Concatenated identifier consists of several attributes • An identifier may be ‘artificial,’ such as creating an ID

number • Identifiers may not be developed until the Design Phase

Page 47: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Choices for Identifiers

Page 48: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Relationships • Associations between entities • The first entity in the relationship is the parent

entity; the second entity in the relationship is the child entity

• Relationships should have active verb names • Relationships go in both directions

Page 49: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Cardinality • Cardinality

• refers to the number of times instances in one entity can be related to instances in another entity

• One instance in an entity refers to one and only one instance in the related entity (1:1)

• One instance in an entity refers to one or more instances in the related entity (1:N)

• One or more instances in an entity refer to one or more instances in the related entity (M:N)

Page 50: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Modality • Modality

• Refers to whether or not an instance of a child entity can exist without a related instance in the parent entity

• Not Null means that an instance in the related entity must exist for an instance in another entity to be valid

• Null means that no instance in the related entity is necessary for an instance in another entity to be valid

Page 51: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

M : N Relationships

Page 52: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Data Dictionary Entry for the Patient Entity (Shown Using Erwin)

Page 53: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Un-normalized Entity

Begin with an entity from the logical data model

Page 54: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

First Normal Form (1NF)

Look for repeating groups of attributes and remove them into separate entities

Page 55: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Second Normal Form (2NF) If an entity has a concatenated identifier, look for attributes that depend only on part of the identifier. If found, remove to new entity.

Page 56: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Third Normal Form (3NF) Look for attributes that depend only on another non-identifying attribute. If found, remove to new entity. Also remove any calculated attributes.

Page 57: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Summary

• Hierarchy of data: bits, characters, fields, records, files, and databases

• An entity is a generalized class of things (objects) for which data is collected, stored, and maintained

• Attribute: characteristic of an entity • Data model: diagram of entities and relationships

Page 58: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

Summary (continued)

• A database management system (DBMS) is a group of programs used as an interface between:

• The database and application programs • The database and the user

• Data dictionary: detailed description of all the data used in the database

Page 59: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

References • Charles Parker, Thomas Case. (2000). “Management Information Systems: Action &

Strategy”. (2nd Edition). • Kenneth C. Laudon & Jane P. Laudon (2001). “Management Information Systems:

Managing a Digital Firm”.(7th Edition) • James O’Brien. (1998). “Introduction to Information Systems: A Networked

Enterprise Perspective”. (2nd Edition). • Chris Woodward (2001), CSC Research Services. Creating Information Systems

Harmony (http://www.csc.com/features/2001/21.shtml) • CSC Research Services. “CEOs are from Mars, CIOs are from Pluto”.

(http://www.csc.com/features/2002/22.shtml) • Grover S. Kearns (1997). “Alignment of Information Systems Plans with Business

Plans”. (http://hsb.baylor.edu/ramsower/ais.ac.97/papers/kearns.htm) • Ralph M. Stair & George W. Reynolds (2012). “Fundamentals of Information Systems”. (6th

Edition) • James A. O’Brien, George M. Marakas (2010). “INTRODUCTION TO INFORMATION SYSTEMS”.

(15th Edition) • Ralph Stair, George Reynolds (2006). “Fundamentals of Information Systems”. (3rd /4th Edition). • Stephen Haag, Maeve Cummings (2009). “INFORMATION SYSTEMS ESSENTIALS”. (3rd Edition)

Page 60: Advanced Management Information System - itacademic.iritacademic.ir/upload/MIS-6.pdf · • The first entity in the relationship is the parent entity; the second entity in the relationship

موفق باشيد