SlideShare a Scribd company logo
Copyright 2002 Prentice-Hall, Inc.
Modern Systems Analysis
and Design
Third Edition
Jeffrey A. Hoffer
Joey F. George
Joseph S. Valacich
Chapter 12
Designing Databases
12.1
Learning Objectives
Define each of the following database terms
 Relation
 Primary key
 Normalization
 Functional dependency
 Foreign key
 Referential integrity
 Field
 Data type
 Null value
 Denormalization
 File organization
 Index
 Secondary key
12.2
Learning Objectives
Discuss the role of designing databases in
the analysis and design of an information
system
Learn how to transform an Entity-Relationship
(ER) Diagram into an equivalent set of well-
structured relations
Learn how to merge normalized relations
from separate user views into a consolidated
set of well-structured relations
12.3
Learning Objectives
Explain choices of storage formats for
database fields
Learn how to transform well-structured
relations into efficient database tables
Discuss use of different types of file
organizations to store database files
Discuss indexes and their purpose
12.4
Purpose of Database Design
Structure the data in stable structures, called
normalized tables
 Not likely to change over time
 Minimal redundancy
Develop a logical database design that
reflects actual data requirements
Develop a logical database design from which
a physical database design can be developed
12.5
Purpose of Database Design
Translate a relational database model
into a technical file and database
design that balances several
performance factors
Choose data storage technologies that
will efficiently, accurately and securely
process database activities
12.6
Process of Database Design
Logical Design
 Based upon the conceptual data model
 Four key steps
1. Develop a logical data model for each known user interface
for the application using normalization principles
2. Combine normalized data requirements from all user
interfaces into one consolidated logical database model
3. Translate the conceptual E-R data model for the application
into normalized data requirements
4. Compare the consolidated logical database design with the
translated E-R model and produce one final logical database
model for the application
12.7
Process of Database Design
Physical Design
 Based upon results of logical database design
 Key decisions
1. Choosing storage format for each attribute from the
logical database model
2. Grouping attributes from the logical database model
into physical records
3. Arranging related records in secondary memory (hard
disks and magnetic tapes) so that records can be
stored, retrieved and updated rapidly
4. Selecting media and structures for storing data to
make access more efficient
12.8
Deliverables and Outcomes
Logical database design must account
for every data element on a system
input or output
Normalized relations are the primary
deliverable
Physical database design results in
converting relations into files
12.9
Relational Database Model
Data represented as a set of related tables or
relations
Relation
 A named, two-dimensional table of data. Each
relation consists of a set of named columns and
an arbitrary number of unnamed rows
 Properties
 Entries in cells are simple
 Entries in columns are from the same set of values
 Each row is unique
 The sequence of columns can be interchanged without
changing the meaning or use of the relation
 The rows may be interchanged or stored in any
sequence12.10
Relational Database Model
Well-Structured Relation
 A relation that contains a minimum amount
of redundancy and allows users to insert,
modify and delete the rows without errors
or inconsistencies
12.11
Normalization
The process of converting complex
data structures into simple, stable data
structures
Second Normal Form (2NF)
 Each nonprimary key attribute is
identified by the whole key (called full
functional dependency)
12.12
Normalization
Third Normal Form (3NF)
 Nonprimary key attributes do not depend
on each other (called transitive
dependencies)
The result of normalization is that
every nonprimary key attribute
depends upon the whole primary key
12.13
Functional Dependencies and
Primary Keys
Functional Dependency
 A particular relationship between two attributes.
For a given relation, attribute B is functionally
dependent on attribute A is, for every valid value
of A, that value of A uniquely determines the value
of B
 Instances (or sample data) in a relation do not
prove the existence of a functional dependency
 Knowledge of problem domain is most reliable
method for identifying functional dependency
Primary Key
 An attribute whose value is unique across all
occurrences of a relation12.14
Functional Dependencies and
Primary Keys
Second Normal Form (2NF)
 A relation is in second normal form (2NF) if
any of the following conditions apply:
 The primary key consists of only one attribute
 No nonprimary key attributes exist in the
relation
 Every nonprimary key attribute is functionally
dependent on the full set of primary key
attributes
12.15
Functional Dependencies and
Primary Keys
Conversion to second normal form
(2NF)
 To convert a relation into 2NF, decompose
the relation into new relations using the
attributes, called determinants, that
determine other attributes
 The determinants become the primary key
of the new relation
12.16
Functional Dependencies and
Primary Keys
Third Normal Form (3NF)
 A relation is in third normal form (3NF) if it
is in second normal form (2NF) and there
are no functional (transitive) dependencies
between two (or more) nonprimary key
attributes
12.17
Functional Dependencies and
Primary Keys
Foreign Key
 An attribute that appears as a nonprimary key
attribute in one relation and as a primary key
attribute (or part of a primary key) in another
relation
Referential Integrity
 An integrity constraint specifying that the value (or
existence) of an attribute in one relation depends
on the value (or existence) of the same attribute in
another relation
12.18
Transforming E-R Diagrams
into Relations
It is useful to transform the conceptual
data model into a set of normalized
relations
Steps
 Represent entities
 Represent relationships
 Normalize the relations
 Merge the relations
12.19
Transforming E-R Diagrams
into Relations
Represent Entities
 Each regular entity is transformed into a relation
 The identifier of the entity type becomes the
primary key of the corresponding relation
 The primary key must satisfy the following two
conditions
a.The value of the key must uniquely identify every row in
the relation
b.The key should be nonredundant
12.20
Transforming E-R Diagrams
into Relations
Represent Relationships
 Binary 1:N Relationships
 Add the primary key attribute (or attributes) of the entity
on the one side of the relationship as a foreign key in the
relation on the right side
 The one side migrates to the many side
 Binary or Unary 1:1
 Three possible options
a. Add the primary key of A as a foreign key of B
b. Add the primary key of B as a foreign key of A
c. Both of the above
12.21
Transforming E-R Diagrams into
Relations
Represent Relationships (continued)
 Binary and Higher M:N relationships
 Create another relation and include primary keys of all
relations as primary key of new relation
 Unary 1:N Relationships
 Relationship between instances of a single entity type
 Utilize a recursive foreign key
 A foreign key in a relation that references the primary key
values of that same relation
 Unary M:N Relationships
 Create a separate relation
 Primary key of new relation is a composite of two
attributes that both take their values from the same
primary key
12.22
12.23
Transforming E-R Diagrams
into Relations
Merging Relations (View Integration)
 Purpose is to remove redundant relations
 View Integration Problems
 Synonyms
 Two different names used for the same attribute
 When merging, get agreement from users on a single,
standard name
 Homonyms
 A single attribute name that is used for two or more
different attributes
 Resolved by creating a new name
 Dependencies between nonkeys
 Dependencies may be created as a result of view
integration
 In order to resolve, the new relation must be normalized
12.24
Physical File and Database
Design
The following information is required
 Normalized relations, including volume estimates
 Definitions of each attribute
 Descriptions of where and when data are used,
entered, retrieved, deleted and updated
(including frequencies)
 Expectations or requirements for response time
and data integrity
 Descriptions of the technologies used for
implementing the files and database
12.25
Designing Fields
Field
 The smallest unit of named application data recognized by system software
 Each attribute from each relation will be represented as one or more fields
Choosing data types
 Data Type
 A coding scheme recognized by system software for representing
organizational data
 Four objectives
 Minimize storage space
 Represent all possible values of the field
 Improve data integrity of the field
 Support all data manipulations desired on the field
 Calculated fields
 A field that can be derived from other database fields
12.26
Methods of Controlling Data
Integrity
Default Value
 A value a field will assume unless an explicit value is
entered for that field
Range Control
 Limits range of values which can be entered into field
Referential Integrity
 An integrity constraint specifying that the value (or
existence) of an attribute in one relation depends on the
value (or existence) of the same attribute in another relation
Null Value
 A special field value, distinct from 0, blank, or any other
value, that indicates that the value for the field is missing or
otherwise unknown
12.27
Designing Physical Tables
Relational database is a set of related tables
Physical Table
 A named set of rows and columns that specifies
the fields in each row of the table
Design Goals
 Efficient use of secondary storage (disk space)
 Disks are divided into units that can be read in one
machine operation
 Space is used most efficiently when the physical length
of a table row divides close to evenly with storage unit
 Efficient data processing
 Data are most efficiently processed when stored next to
each other in secondary memory12.28
Designing Physical Tables
Denormalization
 The process of splitting or combining normalized
relations into physical tables based on affinity of
use of rows and fields
 Partitioning
 Capability to split a table into separate sections
 Oracle 8i implements three types
 Range
 Hash
 Composite
 Optimizes certain operations at the expense of
others
12.29
Designing Physical Tables
Denormalization
 Three common situations where
denormalization may be used
1.Two entities with a one-to-one relationship
2.A many-to-many relationship with nonkey
attributes
3.Reference data
12.30
Designing Physical Tables
Arranging Table Rows
 Physical File
 A named set of table rows stored in a contiguous
section of secondary memory
 Each table may be a physical file or whole
database may be one file, depending on
database management software utilized
12.31
Designing Physical Tables
File Organization
 A technique for physically arranging the records
of a file
 Objectives for choosing file organization
1. Fast data retrieval
2. High throughput for processing transactions
3. Efficient use of storage space
4. Protection from failures or data loss
5. Minimizing need for reorganization
6. Accommodating growth
7. Security from unauthorized use
12.32
Designing Physical Tables
Types of File Organization
 Sequential
 The rows in the file are stored in sequence according to a
primary key value
 Updating and adding records may require rewriting the file
 Deleting records results in wasted space
 Indexed
 The rows are stored either sequentially or nonsequentially
and an index is created that allows software to locate
individual rows
 Index
 A table used to determine the location of rows in a file that
satisfy some condition
 Secondary Index
 Index based upon a combination of fields for which more than
one row may have same combination of values
12.33
Designing Physical Tables
Guidelines for choosing indexes
 Specify a unique index for the primary key of each
table
 Specify an index for foreign keys
 Specify an index for nonkey fields that are
referenced in qualification, sorting and grouping
commands for the purpose of retrieving data
Hashed File Organization
 The address for each row is determined using an
algorithm
12.34
12.35
Designing Controls for Files
Backup Techniques
 Periodic backup of files
 Transaction log or audit trail
 Change log
Data Security Techniques
 Coding or encrypting
 User account management
 Prohibiting users from working directly with the
data. Users work with a copy which updates the
files only after validation checks
12.36
Summary
Key Terms
 Relation
 Primary key
 Normalization
 Functional dependency
 Foreign key
 Referential integrity
 Field
 Data type
 Denormalization
 File organization
 Index
 Secondary key
12.37
Summary
Transforming E-R diagram into well-
structured relations
View integration
Storage formats for database fields
Efficient database table design
 Efficient use of secondary storage
 Data processing speed
File organization
Indexes
12.38

More Related Content

What's hot

Chapter13 designing forms and reports
Chapter13 designing forms and reportsChapter13 designing forms and reports
Chapter13 designing forms and reports
Dhani Ahmad
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
Smriti Jain
 
Structure of dbms
Structure of dbmsStructure of dbms
Structure of dbms
Megha yadav
 
Elmasri Navathe DBMS Unit-1 ppt
Elmasri Navathe DBMS Unit-1 pptElmasri Navathe DBMS Unit-1 ppt
Elmasri Navathe DBMS Unit-1 ppt
AbhinavPandey274499
 
deadlock avoidance
deadlock avoidancedeadlock avoidance
deadlock avoidancewahab13
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relationalJafar Nesargi
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
rishi ram khanal
 
Requirement modeling
Requirement modelingRequirement modeling
Requirement modelingAbdul Basit
 
Data models
Data modelsData models
Data models
Usman Tariq
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to databaseemailharmeet
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
sadique_ghitm
 
Codd's rules
Codd's rulesCodd's rules
Codd's rulesMohd Arif
 
Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram
Ramakant Soni
 
Lec 7 query processing
Lec 7 query processingLec 7 query processing
Lec 7 query processing
Md. Mashiur Rahman
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
Janki Shah
 
Internet programming lecture 1
Internet programming lecture 1Internet programming lecture 1
Internet programming lecture 1Mohammed Hussein
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
Kabindra Koirala
 
Architecture design in software engineering
Architecture design in software engineeringArchitecture design in software engineering
Architecture design in software engineering
Preeti Mishra
 

What's hot (20)

Chapter13 designing forms and reports
Chapter13 designing forms and reportsChapter13 designing forms and reports
Chapter13 designing forms and reports
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
 
Structure of dbms
Structure of dbmsStructure of dbms
Structure of dbms
 
Elmasri Navathe DBMS Unit-1 ppt
Elmasri Navathe DBMS Unit-1 pptElmasri Navathe DBMS Unit-1 ppt
Elmasri Navathe DBMS Unit-1 ppt
 
deadlock avoidance
deadlock avoidancedeadlock avoidance
deadlock avoidance
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Entity relationship modelling
Entity relationship modellingEntity relationship modelling
Entity relationship modelling
 
Requirement modeling
Requirement modelingRequirement modeling
Requirement modeling
 
Data models
Data modelsData models
Data models
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Codd's rules
Codd's rulesCodd's rules
Codd's rules
 
Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram
 
Lec 7 query processing
Lec 7 query processingLec 7 query processing
Lec 7 query processing
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
 
Internet programming lecture 1
Internet programming lecture 1Internet programming lecture 1
Internet programming lecture 1
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Active x control
Active x controlActive x control
Active x control
 
Architecture design in software engineering
Architecture design in software engineeringArchitecture design in software engineering
Architecture design in software engineering
 

Similar to Chapter12 designing databases

12 si(systems analysis and design )
12 si(systems analysis and design )12 si(systems analysis and design )
12 si(systems analysis and design )
Nurdin Al-Azies
 
RDBMS_Concept.ppt
RDBMS_Concept.pptRDBMS_Concept.ppt
RDBMS_Concept.ppt
Ganesh Bhosale
 
Rdbms
RdbmsRdbms
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modeling
Dhani Ahmad
 
PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
traderbear1
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
Rc Os
 
TID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseTID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseWanBK Leo
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA19
 
21792 relational database managementsystem
21792 relational database managementsystem21792 relational database managementsystem
21792 relational database managementsystem
Universitas Bina Darma Palembang
 
D.dsgn + dbms
D.dsgn + dbmsD.dsgn + dbms
D.dsgn + dbms
Dori Dorian
 
02010 ppt ch02
02010 ppt ch0202010 ppt ch02
02010 ppt ch02
Alfred Agno
 
RDBMS
RDBMSRDBMS
Data Models.ppt
Data Models.pptData Models.ppt
Data Models.ppt
AnshikaGoel42
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational Model
Amiya9439793168
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
Daniel Francisco Tamayo
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
Ahmed Magdy
 
Unit 4 Design_a system analysis and design Designing Database.pdf
Unit 4 Design_a system analysis and design  Designing Database.pdfUnit 4 Design_a system analysis and design  Designing Database.pdf
Unit 4 Design_a system analysis and design Designing Database.pdf
SuryaBasnet3
 

Similar to Chapter12 designing databases (20)

12 si(systems analysis and design )
12 si(systems analysis and design )12 si(systems analysis and design )
12 si(systems analysis and design )
 
RDBMS_Concept.ppt
RDBMS_Concept.pptRDBMS_Concept.ppt
RDBMS_Concept.ppt
 
Rdbms
RdbmsRdbms
Rdbms
 
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modeling
 
PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
 
Ch10
Ch10Ch10
Ch10
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
 
TID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseTID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To Database
 
Ch09
Ch09Ch09
Ch09
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
 
21792 relational database managementsystem
21792 relational database managementsystem21792 relational database managementsystem
21792 relational database managementsystem
 
DBMS (1).pptx
DBMS (1).pptxDBMS (1).pptx
DBMS (1).pptx
 
D.dsgn + dbms
D.dsgn + dbmsD.dsgn + dbms
D.dsgn + dbms
 
02010 ppt ch02
02010 ppt ch0202010 ppt ch02
02010 ppt ch02
 
RDBMS
RDBMSRDBMS
RDBMS
 
Data Models.ppt
Data Models.pptData Models.ppt
Data Models.ppt
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational Model
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
Unit 4 Design_a system analysis and design Designing Database.pdf
Unit 4 Design_a system analysis and design  Designing Database.pdfUnit 4 Design_a system analysis and design  Designing Database.pdf
Unit 4 Design_a system analysis and design Designing Database.pdf
 

More from Dhani Ahmad

Strategic planning
Strategic planningStrategic planning
Strategic planning
Dhani Ahmad
 
Strategic information system planning
Strategic information system planningStrategic information system planning
Strategic information system planning
Dhani Ahmad
 
Opportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysisOpportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysisDhani Ahmad
 
Information system
Information systemInformation system
Information systemDhani Ahmad
 
Information resource management
Information resource managementInformation resource management
Information resource managementDhani Ahmad
 
Types of islamic institutions and records
Types of islamic institutions and recordsTypes of islamic institutions and records
Types of islamic institutions and records
Dhani Ahmad
 
Islamic information seeking behavior
Islamic information seeking behaviorIslamic information seeking behavior
Islamic information seeking behavior
Dhani Ahmad
 
Islamic information management
Islamic information managementIslamic information management
Islamic information management
Dhani Ahmad
 
Islamic information management sources in islam
Islamic information management sources in islamIslamic information management sources in islam
Islamic information management sources in islam
Dhani Ahmad
 
The need for security
The need for securityThe need for security
The need for security
Dhani Ahmad
 
The information security audit
The information security auditThe information security audit
The information security audit
Dhani Ahmad
 
Security technologies
Security technologiesSecurity technologies
Security technologies
Dhani Ahmad
 
Security policy
Security policySecurity policy
Security policy
Dhani Ahmad
 
Security and personnel
Security and personnelSecurity and personnel
Security and personnel
Dhani Ahmad
 
Secure
SecureSecure
Secure
Dhani Ahmad
 
Risk management ii
Risk management iiRisk management ii
Risk management ii
Dhani Ahmad
 
Risk management i
Risk management iRisk management i
Risk management i
Dhani Ahmad
 
Privacy & security in heath care it
Privacy & security in heath care itPrivacy & security in heath care it
Privacy & security in heath care it
Dhani Ahmad
 
Physical security
Physical securityPhysical security
Physical security
Dhani Ahmad
 
Legal, ethical & professional issues
Legal, ethical & professional issuesLegal, ethical & professional issues
Legal, ethical & professional issues
Dhani Ahmad
 

More from Dhani Ahmad (20)

Strategic planning
Strategic planningStrategic planning
Strategic planning
 
Strategic information system planning
Strategic information system planningStrategic information system planning
Strategic information system planning
 
Opportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysisOpportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysis
 
Information system
Information systemInformation system
Information system
 
Information resource management
Information resource managementInformation resource management
Information resource management
 
Types of islamic institutions and records
Types of islamic institutions and recordsTypes of islamic institutions and records
Types of islamic institutions and records
 
Islamic information seeking behavior
Islamic information seeking behaviorIslamic information seeking behavior
Islamic information seeking behavior
 
Islamic information management
Islamic information managementIslamic information management
Islamic information management
 
Islamic information management sources in islam
Islamic information management sources in islamIslamic information management sources in islam
Islamic information management sources in islam
 
The need for security
The need for securityThe need for security
The need for security
 
The information security audit
The information security auditThe information security audit
The information security audit
 
Security technologies
Security technologiesSecurity technologies
Security technologies
 
Security policy
Security policySecurity policy
Security policy
 
Security and personnel
Security and personnelSecurity and personnel
Security and personnel
 
Secure
SecureSecure
Secure
 
Risk management ii
Risk management iiRisk management ii
Risk management ii
 
Risk management i
Risk management iRisk management i
Risk management i
 
Privacy & security in heath care it
Privacy & security in heath care itPrivacy & security in heath care it
Privacy & security in heath care it
 
Physical security
Physical securityPhysical security
Physical security
 
Legal, ethical & professional issues
Legal, ethical & professional issuesLegal, ethical & professional issues
Legal, ethical & professional issues
 

Recently uploaded

Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Jay Das
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 

Recently uploaded (20)

Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 

Chapter12 designing databases

  • 1. Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 12 Designing Databases 12.1
  • 2. Learning Objectives Define each of the following database terms  Relation  Primary key  Normalization  Functional dependency  Foreign key  Referential integrity  Field  Data type  Null value  Denormalization  File organization  Index  Secondary key 12.2
  • 3. Learning Objectives Discuss the role of designing databases in the analysis and design of an information system Learn how to transform an Entity-Relationship (ER) Diagram into an equivalent set of well- structured relations Learn how to merge normalized relations from separate user views into a consolidated set of well-structured relations 12.3
  • 4. Learning Objectives Explain choices of storage formats for database fields Learn how to transform well-structured relations into efficient database tables Discuss use of different types of file organizations to store database files Discuss indexes and their purpose 12.4
  • 5. Purpose of Database Design Structure the data in stable structures, called normalized tables  Not likely to change over time  Minimal redundancy Develop a logical database design that reflects actual data requirements Develop a logical database design from which a physical database design can be developed 12.5
  • 6. Purpose of Database Design Translate a relational database model into a technical file and database design that balances several performance factors Choose data storage technologies that will efficiently, accurately and securely process database activities 12.6
  • 7. Process of Database Design Logical Design  Based upon the conceptual data model  Four key steps 1. Develop a logical data model for each known user interface for the application using normalization principles 2. Combine normalized data requirements from all user interfaces into one consolidated logical database model 3. Translate the conceptual E-R data model for the application into normalized data requirements 4. Compare the consolidated logical database design with the translated E-R model and produce one final logical database model for the application 12.7
  • 8. Process of Database Design Physical Design  Based upon results of logical database design  Key decisions 1. Choosing storage format for each attribute from the logical database model 2. Grouping attributes from the logical database model into physical records 3. Arranging related records in secondary memory (hard disks and magnetic tapes) so that records can be stored, retrieved and updated rapidly 4. Selecting media and structures for storing data to make access more efficient 12.8
  • 9. Deliverables and Outcomes Logical database design must account for every data element on a system input or output Normalized relations are the primary deliverable Physical database design results in converting relations into files 12.9
  • 10. Relational Database Model Data represented as a set of related tables or relations Relation  A named, two-dimensional table of data. Each relation consists of a set of named columns and an arbitrary number of unnamed rows  Properties  Entries in cells are simple  Entries in columns are from the same set of values  Each row is unique  The sequence of columns can be interchanged without changing the meaning or use of the relation  The rows may be interchanged or stored in any sequence12.10
  • 11. Relational Database Model Well-Structured Relation  A relation that contains a minimum amount of redundancy and allows users to insert, modify and delete the rows without errors or inconsistencies 12.11
  • 12. Normalization The process of converting complex data structures into simple, stable data structures Second Normal Form (2NF)  Each nonprimary key attribute is identified by the whole key (called full functional dependency) 12.12
  • 13. Normalization Third Normal Form (3NF)  Nonprimary key attributes do not depend on each other (called transitive dependencies) The result of normalization is that every nonprimary key attribute depends upon the whole primary key 12.13
  • 14. Functional Dependencies and Primary Keys Functional Dependency  A particular relationship between two attributes. For a given relation, attribute B is functionally dependent on attribute A is, for every valid value of A, that value of A uniquely determines the value of B  Instances (or sample data) in a relation do not prove the existence of a functional dependency  Knowledge of problem domain is most reliable method for identifying functional dependency Primary Key  An attribute whose value is unique across all occurrences of a relation12.14
  • 15. Functional Dependencies and Primary Keys Second Normal Form (2NF)  A relation is in second normal form (2NF) if any of the following conditions apply:  The primary key consists of only one attribute  No nonprimary key attributes exist in the relation  Every nonprimary key attribute is functionally dependent on the full set of primary key attributes 12.15
  • 16. Functional Dependencies and Primary Keys Conversion to second normal form (2NF)  To convert a relation into 2NF, decompose the relation into new relations using the attributes, called determinants, that determine other attributes  The determinants become the primary key of the new relation 12.16
  • 17. Functional Dependencies and Primary Keys Third Normal Form (3NF)  A relation is in third normal form (3NF) if it is in second normal form (2NF) and there are no functional (transitive) dependencies between two (or more) nonprimary key attributes 12.17
  • 18. Functional Dependencies and Primary Keys Foreign Key  An attribute that appears as a nonprimary key attribute in one relation and as a primary key attribute (or part of a primary key) in another relation Referential Integrity  An integrity constraint specifying that the value (or existence) of an attribute in one relation depends on the value (or existence) of the same attribute in another relation 12.18
  • 19. Transforming E-R Diagrams into Relations It is useful to transform the conceptual data model into a set of normalized relations Steps  Represent entities  Represent relationships  Normalize the relations  Merge the relations 12.19
  • 20. Transforming E-R Diagrams into Relations Represent Entities  Each regular entity is transformed into a relation  The identifier of the entity type becomes the primary key of the corresponding relation  The primary key must satisfy the following two conditions a.The value of the key must uniquely identify every row in the relation b.The key should be nonredundant 12.20
  • 21. Transforming E-R Diagrams into Relations Represent Relationships  Binary 1:N Relationships  Add the primary key attribute (or attributes) of the entity on the one side of the relationship as a foreign key in the relation on the right side  The one side migrates to the many side  Binary or Unary 1:1  Three possible options a. Add the primary key of A as a foreign key of B b. Add the primary key of B as a foreign key of A c. Both of the above 12.21
  • 22. Transforming E-R Diagrams into Relations Represent Relationships (continued)  Binary and Higher M:N relationships  Create another relation and include primary keys of all relations as primary key of new relation  Unary 1:N Relationships  Relationship between instances of a single entity type  Utilize a recursive foreign key  A foreign key in a relation that references the primary key values of that same relation  Unary M:N Relationships  Create a separate relation  Primary key of new relation is a composite of two attributes that both take their values from the same primary key 12.22
  • 23. 12.23
  • 24. Transforming E-R Diagrams into Relations Merging Relations (View Integration)  Purpose is to remove redundant relations  View Integration Problems  Synonyms  Two different names used for the same attribute  When merging, get agreement from users on a single, standard name  Homonyms  A single attribute name that is used for two or more different attributes  Resolved by creating a new name  Dependencies between nonkeys  Dependencies may be created as a result of view integration  In order to resolve, the new relation must be normalized 12.24
  • 25. Physical File and Database Design The following information is required  Normalized relations, including volume estimates  Definitions of each attribute  Descriptions of where and when data are used, entered, retrieved, deleted and updated (including frequencies)  Expectations or requirements for response time and data integrity  Descriptions of the technologies used for implementing the files and database 12.25
  • 26. Designing Fields Field  The smallest unit of named application data recognized by system software  Each attribute from each relation will be represented as one or more fields Choosing data types  Data Type  A coding scheme recognized by system software for representing organizational data  Four objectives  Minimize storage space  Represent all possible values of the field  Improve data integrity of the field  Support all data manipulations desired on the field  Calculated fields  A field that can be derived from other database fields 12.26
  • 27. Methods of Controlling Data Integrity Default Value  A value a field will assume unless an explicit value is entered for that field Range Control  Limits range of values which can be entered into field Referential Integrity  An integrity constraint specifying that the value (or existence) of an attribute in one relation depends on the value (or existence) of the same attribute in another relation Null Value  A special field value, distinct from 0, blank, or any other value, that indicates that the value for the field is missing or otherwise unknown 12.27
  • 28. Designing Physical Tables Relational database is a set of related tables Physical Table  A named set of rows and columns that specifies the fields in each row of the table Design Goals  Efficient use of secondary storage (disk space)  Disks are divided into units that can be read in one machine operation  Space is used most efficiently when the physical length of a table row divides close to evenly with storage unit  Efficient data processing  Data are most efficiently processed when stored next to each other in secondary memory12.28
  • 29. Designing Physical Tables Denormalization  The process of splitting or combining normalized relations into physical tables based on affinity of use of rows and fields  Partitioning  Capability to split a table into separate sections  Oracle 8i implements three types  Range  Hash  Composite  Optimizes certain operations at the expense of others 12.29
  • 30. Designing Physical Tables Denormalization  Three common situations where denormalization may be used 1.Two entities with a one-to-one relationship 2.A many-to-many relationship with nonkey attributes 3.Reference data 12.30
  • 31. Designing Physical Tables Arranging Table Rows  Physical File  A named set of table rows stored in a contiguous section of secondary memory  Each table may be a physical file or whole database may be one file, depending on database management software utilized 12.31
  • 32. Designing Physical Tables File Organization  A technique for physically arranging the records of a file  Objectives for choosing file organization 1. Fast data retrieval 2. High throughput for processing transactions 3. Efficient use of storage space 4. Protection from failures or data loss 5. Minimizing need for reorganization 6. Accommodating growth 7. Security from unauthorized use 12.32
  • 33. Designing Physical Tables Types of File Organization  Sequential  The rows in the file are stored in sequence according to a primary key value  Updating and adding records may require rewriting the file  Deleting records results in wasted space  Indexed  The rows are stored either sequentially or nonsequentially and an index is created that allows software to locate individual rows  Index  A table used to determine the location of rows in a file that satisfy some condition  Secondary Index  Index based upon a combination of fields for which more than one row may have same combination of values 12.33
  • 34. Designing Physical Tables Guidelines for choosing indexes  Specify a unique index for the primary key of each table  Specify an index for foreign keys  Specify an index for nonkey fields that are referenced in qualification, sorting and grouping commands for the purpose of retrieving data Hashed File Organization  The address for each row is determined using an algorithm 12.34
  • 35. 12.35
  • 36. Designing Controls for Files Backup Techniques  Periodic backup of files  Transaction log or audit trail  Change log Data Security Techniques  Coding or encrypting  User account management  Prohibiting users from working directly with the data. Users work with a copy which updates the files only after validation checks 12.36
  • 37. Summary Key Terms  Relation  Primary key  Normalization  Functional dependency  Foreign key  Referential integrity  Field  Data type  Denormalization  File organization  Index  Secondary key 12.37
  • 38. Summary Transforming E-R diagram into well- structured relations View integration Storage formats for database fields Efficient database table design  Efficient use of secondary storage  Data processing speed File organization Indexes 12.38