Lecture 2. Data Model
Lecture 2. Data Model
Chapter 1
Database Systems
Database
System Design, Implementation And
Management Course – Data Model
3. Define what business rules are and how they influence database design
5. List emerging alternative data models and the needs they fulfill
Data models
Relatively simple representations of complex real-
world data structures
Often graphical
Names should make the object unique and distinguishable from other objects
Names should also be descriptive of objects in the environment and be familiar to users
Proper naming:
Facilitates communication between parties
Promotes self-documentation
Network model
Created to represent complex data relationships more effectively
than the hierarchical model
Improves database performance
Imposes a database standard
Resembles hierarchical model
Record may have more than one parent
Table (relations)
Matrix consisting of row/column intersections
Each row in a relation is called a tuple
Relational diagram
Representation of entities, attributes, and relationships
An object:
Contains operations
Are self-contained: a basic building-block for autonomous structures
Is an abstraction of a real-world entity
Big Data
Find new and better ways to manage large
amounts of Web-generated data and derive
business insight from it
Simultaneously provides high performance and
scalability at a reasonable cost
Relational approach does not always match the
needs of organizations with Big Data challenges
NoSQL databases
Not based on the relational model, hence the name NoSQL
Supports distributed database architectures
Provides high scalability, high availability, and fault tolerance
Supports very large amounts of sparse data
Geared toward performance rather than transaction
consistency
Sparse data
Number of attributes is very large
Number of actual data instances is low
Eventual consistency
Updates will propagate through system; eventually all data copies will be consistent
Common characteristics:
Conceptual simplicity with semantic completeness
Represent the real world as closely as possible
Real-world transformations must comply with consistency and integrity characteristics
Hierarchical model
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 tool for data modeling
Complements relational model