Top Banner
“DOK 322 DBMS” Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems
24

“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

Dec 21, 2015

Download

Documents

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
Page 1: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Design

Hacettepe University

Department of Information Management

DOK 322: Database Management Systems

Page 2: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Last Time

File Management Systems vs. DBMSs Advantages and Disadvatages of

DBMS Components of DBMS MS Access 2000 (Lab)

Page 3: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

DBMS Benefits

Minimal Data Redundancy Consistency of Data Integration of Data Sharing of Data Ease of Application Development Uniform Security, Privacy, and Integrity

Controls Data Accessibility and Responsiveness Data Independence Reduced Program Maintenance

Page 4: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Environment

CASE Tools

DBMS

UserInterface

ApplicationPrograms

Repository Database

Page 5: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Components

DBMS===============

Design toolsTable CreationForm CreationQuery CreationReport Creation

Procedural language

compiler (4GL)=============

Run timeForm processorQuery processor

Report WriterLanguage Run time

UserInterface

Applications

ApplicationProgramsDatabase

Database contains:User’s DataMetadataIndexesApplication Metadata

Kroenke, DatabaseProcessing

Page 6: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Terms and Concepts Database:

– A self-describing collection of integrated records (Kroenke).

– A collection of similar records with relationships between the records. (Rowley)

– A collection of stored operational data used by the application systems of some particular enterprise. (C.J. Date)

Page 7: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Terms and Concepts Enterprise

– Organization Entity

– Person, Place, Thing, Event, Concept... Attributes

– Data elements (facts) about some entity– Also sometimes called fields or items or domains

Data values– instances of a particular attribute for a particular

entity

Page 8: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Terms and Concepts

Key– an attribute or set of attributes used to

identify or locate records in a file Primary Key

– an attribute or set of attributes that uniquely identifies each record in a file

Page 9: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Terms and Concepts

Models– (1) Levels or views of the Database

Conceptual, logical, physical

– (2) DBMS types Relational, Hierarchic, Network, Object-

Oriented, Object-Relational

Page 10: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Models (1)

ConceptualModel

LogicalModel

External Model

Conceptual requirements

Conceptual requirements

Conceptual requirements

Conceptual requirements

Application 1

Application 1

Application 2 Application 3 Application 4

Application 2

Application 3

Application 4

External Model

External Model

External Model

Internal Model

Page 11: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database System Life Cycle

Growth,Change, &

Maintenance6

Operations5

Integration4

Design1

Conversion3

PhysicalCreation

2

Page 12: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Another View of the Life Cycle

Operations5

Conversion3

PhysicalCreation

2Growth, Change

6

Integration4

Design1

Page 13: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Models

Models(2): DBMS types– Hierarchical– Network– Relational– Object-Oriented

Page 14: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Data Models

Hierarchical Model– Similar to data structures in programming

languages.Books

(id, title)

Publisher SubjectsAuthors

(first, last)

Page 15: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Data Models

Network Model– Provides for single entries of data and

navigational “links” through chains of data.

Subjects Books

Authors

Publishers

Page 16: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Data Models

Relational Model– Provides a conceptually simple model for

data as relations (typically considered “tables”) with all data visible.

Book ID Title pubid Author id1 Introductio 2 12 The history 4 23 New stuff ab 3 34 Another title 2 45 And yet more 1 5

pubid pubname1 Harper2 Addison3 Oxford4 Que

Authorid Author name1 Smith2 Wynar3 Jones4 Duncan5 Applegate

Subid Subject1 cataloging2 history3 stuff

Book ID Subid1 22 13 34 24 3

Page 17: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Data Models

Object Oriented Data Model– Encapsulates data and operations as

“Objects”

Books(id, title)

Publisher SubjectsAuthors

(first, last)

Page 18: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Design Process

ConceptualModel

LogicalModel

External Model

Conceptual requirements

Conceptual requirements

Conceptual requirements

Conceptual requirements

Application 1

Application 1

Application 2 Application 3 Application 4

Application 2

Application 3

Application 4

External Model

External Model

External Model

Internal Model

Page 19: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Design Process Conceptual Requirements

– Systems Analysis Process Examine all of the information sources used in existing

applications Identify the characteristics of each data element

– numeric

– text

– date/time

– etc. Examine the tasks carried out using the information Examine results or reports created using the information

Page 20: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Design Process

Conceptual Model– Merge the collective needs of all applications– Determine what Entities are being used

Some object about which information is to maintained

– What are the Attributes of those entities? Properties or characteristics of the entity What attributes uniquely identify the entity

– What are the Relationships between entities How the entities interact with each other?

Page 21: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Design Process

Logical Model– How is each entity and relationship

represented in the Data Model of the DBMS

Hierarchic? Network? Relational? Object-Oriented?

Page 22: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Design Process

Internal Model– Choices of index file structure– Choices of data storage formats– Choices of disk layout

Page 23: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Database Design Process

External Model– User views of the integrated database – Making the old (or updated) applications

work with the new database design

Page 24: “DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.

“DOK 322 DBMS”

Y.T.

Developing a Conceptual Model

Overall view of the database that integrates all the needed information discovered during the requirements analysis.

Elements of the Conceptual Model are represented by diagrams, Entity-Relationship or ER Diagrams, that show the meanings and relationships of those elements independent of any particular database systems or implementation details.