Data Models
Data Models
Data Models
Objectives
Why data models are important About the basic data-modeling building blocks What business rules are and how they influence database design How the major data models evolved How data models can be classified by level of abstraction
2
Business Rules
Brief, precise, and unambiguous descriptions of a policies, procedures, or principles within a specific organization Apply to any organization that stores and uses data to generate information Description of operations that help to create and enforce actions within that organizations environment
6
10
11
12
13
14
16
Subschema
Defines database portion seen by the application programs that actually produce the desired information from data contained within the database
Subschema DDL
Allows application programs to define database components that will be used
DML
Works with the data in the database
19
Member
Equivalent to the hierarchical models child
20
21
Relational diagram
Representation of relational databases entities, attributes within those entities, and relationships between those entities
25
27
28
29
30
Entity instance (or occurrence) is row in table Entity set is collection of like entities Connectivity labels types of relationships
Diamond connected to related entities through a relationship line
31
32
33
34
Includes information about relationships between facts within object, and relationships with other objects
Unlike relational models entity
Subsequent OODM development allowed an object to also contain all operations Object becomes basic building block for autonomous structures
35
36
37
Other Models
Extended Relational Data Model (ERDM)
Semantic data model developed in response to increasing complexity of applications DBMS based on the ERDM often described as an object/relational database management system (O/RDBMS) Primarily geared to business applications
38
40
41
42
43
44
45
47
49
51
52
54
Summary
A data model is a (relatively) simple abstraction of a complex real-world data environment Basic data modeling components are:
Entities Attributes Relationships Constraints
55
Summary (continued)
Hierarchical model
Depicts a set of one-to-many (1:M) relationships between a parent and its children segments
Relational model
Current database implementation standard ER model is a popular graphical tool for data modeling that complements the relational model
56
Summary (continued)
Object is basic modeling structure of object oriented data model The relational model has adopted many objectoriented extensions to become the extended relational data model (ERDM) Data modeling requirements are a function of different data views (global vs. local) and level of data abstraction
57