Professional Documents
Culture Documents
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
File Organization Terms and Concepts
Figure 6.1 The Data Hierarchy
• Database: Group of related files
• File: Group of records of same type
• Record: Group of related fields
• Field: Group of characters as word(s) or number(s)
• Entity: Person, place, thing on which we store information
• Attribute: Each characteristic, or quality, describing entity
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Database Management Systems Figure 6.3 Human Resources Database with
• Database Multiple Views
– Serves many applications by centralizing data and
controlling redundant data
• Database management system (DBMS)
– Interfaces between applications and physical data files
– Separates logical and physical views of data MS Access, My SQL,
– Solves problems of traditional file environment Oracle, MS SQL
Server,…
Controls redundancy
Eliminates inconsistency
Uncouples programs and data
Enables organization to centrally manage data and data
security
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Relational DBMS
Figure 6.4 Relational Database Tables
• Represent data as two-dimensional tables
• Each table contains data on entity and attributes
• Table: grid of columns and rows
– Rows (tuples): Records for different entities
– Fields (columns): Represents attribute for entity
– Key field: Field used to uniquely identify each record
– Primary key: Field in table used for key fields
– Foreign key: Primary key used in second table as look-
up field to identify records from original table
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Operations of a Relational DBMS Capabilities of Database Management Systems
Structured Query Language (SQL) • Data definition capability
• Three basic operations used to develop useful sets of data • Data dictionary
– SELECT
• Querying and reporting
Creates subset of data of all records that meet
– Data manipulation language
stated criteria
Structured Query Language (SQL)
– JOIN
Combines relational tables to provide user with • Many DBMS have report generation capabilities for
more information than available in individual tables creating polished reports (Microsoft Access)
– PROJECT
Creates subset of columns in table, creating tables
with only the information specified
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
E-R Model Constructs E-R Model Constructs
Entities: Sample E-R Diagram
Entity instance–person, place, object, event, concept
(often corresponds to a row in a table)
Entity Type–collection of entities (often corresponds to a
table)
Relationships:
Relationship instance–link between entities (corresponds
to primary key-foreign key equivalencies in related tables)
Relationship type–category of relationship…link between
entity types
Attributes:
Properties or characteristics of an entity or relationship
type (often corresponds to a field in a table)
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
E-R Model Constructs E-R Model Constructs
Associative Entities A binary relationship with an attribute
An entity–has attributes
A relationship–links entities together
When should a relationship with attributes instead be an
associative entity?
All relationships for the associative entity should be many
The associative entity could have meaning independent
Here, the date completed attribute pertains specifically to the
of the other entities
employee’s completion of a course…it is an attribute of the
The associative entity preferably has a unique identifier, relationship.
and should also have other attributes
Ternary relationships should be converted to associative
entities
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
- Entities
- Relationships
(unary, binary,
ternary)
- Attributes
- Cardinality
- Primary key
- Foreign key
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Transforming E-R diagrams into relations (table) Transforming E-R diagrams into relations (table)
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Transforming E-R diagrams into relations (table) Transforming E-R diagrams into relations (table)
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Transforming E-R diagrams into relations (table) Transforming E-R diagrams into relations (table)
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Transforming E-R diagrams into relations (table) Transforming E-R diagrams into relations (table)
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Transforming E-R diagrams into relations (table) Transforming E-R diagrams into relations (table)
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Transforming E-R diagrams into relations (table) Transforming E-R diagrams into relations (table)
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
The Challenge of Big Data Business Intelligence Infrastructure
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.13 Contemporary Business Analytical Tools: Relationships,
Intelligence Infrastructure Patterns, Trends
• Tools for consolidating, analyzing, and providing access to
vast amounts of data to help users make better business
decisions
– Multidimensional data analysis (OLAP)
– Data mining
– Text mining
– Web mining
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Transforming E-R diagrams into relations (table)
THE END
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved