2.0 Database System
2.0 Database System
0 Database System
Chapter 2 Part 1: Data Models
Part 1: Data Models
Data Models
2 - Data Models
• Data Model:
- A set of concepts to describe the structure of a database, the operations for
manipulating these structures, and certain constraints that the database should
obey.
- Constructs typically include elements (and their data types) as well as groups of
elements (e.g. entity, record, table), and relationships among such groups
- Constraints specify some restrictions on valid data; these constraints must be always
enforced
- These operations are used for specifying database retrievals and updates by referring
to the constructs of the data model.
- Operations on the data model may include basic model operations (e.g. generic
insert, delete, update) and user-defined operations (e.g. compute_student_gpa,
update_inventory)
- A problem domain is a clearly defined area within the real-world environment, with
a well-defined scope and boundaries that will be systematically addressed.
• A data model is a relatively simple representation, usually graphical, of more complex real-
world data structures
• However, such data and information do not provide the essential insight of the overall
business.
• From a database standpoint, data collection is only valuable when it reflects well-specified
business rules.
Business rules
• Descriptions of policies, procedures, or principles within a specific organization
• Apply to any organization that stores and uses data to generate information
Example
Discovering Business Rules
More examples
Practice
• They work together to keep your business information organized and useful.
• They work together to keep your business information organized and useful.
Data Abstraction
• Data Abstraction is a process of hiding unwanted or irrelevant details from the end user.
• It provides a different view and helps in achieving data independence, which is used to
enhance the security of data
• Database designers use data models to communicate with programmers and end users
- Entities
- Attributes
- Relationships
- Constraints
• Business rules are used to identify and define the basic modeling components within a
specific real-world environment
- Hierarchical model
- Relational model
• Data-modeling requirements are a function of different data views and abstraction levels
• NoSQL databases are a new generation of databases that do not use the relational model
and are geared to support the very specific needs of Big Data organizations.
Practice