[Notes] Database Management
Some notes on database management.
1. Introduction to database management systems
Information qualities
- Accurate
- timely
- Full
- Significant
- Complete
- Safe
002 - Topic 1 - Database management systems.pdf - Page 3
What do we mean by system?
Set of things that, in an orderly relationship with each other, contribute to a certain objective.
002 - Topic 1 - Database management systems.pdf - Page 4
What do we understand by information system?
Set of elements in an orderly relationship with each other in accordance with certain rules that provides the object system with the necessary information for the fulfillment of its purposes, for which it will have to collect, process and store data, both from the same organization and from external sources, facilitating the recovery, elaboration and presentation of the same.
002 - Topic 1 - Database management systems.pdf - Page 5
Components of an electronic information system
- Data 2.Hardware 3.software
- Human resources
002 - Topic 1 - Database management systems.pdf - Page 6
Types of information systems
- Process-oriented or file-oriented information systems
- Data-oriented information systems. Databases
002 - Topic 1 - Database management systems.pdf - Page 8
Objectives and characteristics of database management systems
002 - Topic 1 - Database management systems.pdf - Page 11
Levels of abstraction of a database
ANSI/SPARC architecture:
- External scheme (outer layer)
- Conceptual scheme (theoretical layer)
- Physical scheme (physical layer)
002 - Topic 1 - Database management systems.pdf - Page 12
Components of database management systems
Functions. Languages of database management systems
- Description or definition function
- Tamper function
- Control function
002 - Topic 1 - Database management systems.pdf - Page 14
Human resources databases
- Database administrator
- Database Designers
- Application developers
- End users
002 - Topic 1 - Database management systems.pdf - Page 15
Operation of the database management system
*002 - Topic 1 - Database management systems.pdf - Page 17
Architecture of database management systems. Standards and standardization bodies
*002 - Topic 1 - Database management systems.pdf - Page 19
Operational Structures
- Client-server structure
- Multi-server structure
- Client-server structure with database user-server facilities
*002 - Topic 1 - Database management systems.pdf - Page 22
Types of database management systems
According to the logical model to which they belong
- Hierarchical model
- Network model
- Relational model
- Object-oriented model
- Object-relational model
*002 - Topic 1 - Database management systems.pdf - Page 23
METRIC Version 3
004 - Introduction to METRIC Version 3.pdf
2. Elaboration of the conceptual design. entity-relationship model
Key elements in the model
Entity
- Strong or regular
- Weak
002 - Topic 2 - Elaboration of the conceptual design….pdf - Page 3
Relationship
Participation of entities in the relationship:
- Maximum participation
- Minimum participation
002 - Topic 2 - Elaboration of the conceptual design….pdf - Page 5
Relationship Types:
- 1:1
- 1:N 3.N:M
002 - Topic 2 - Elaboration of the conceptual design….pdf - Page 6
Roles
002 - Topic 2 - Elaboration of the conceptual design….pdf - Page 7
Attributes
- Multiple
- Optional
- Compounds
002 - Topic 2 - Elaboration of the conceptual design….pdf - Page 7
Identifiers or keys
- Foreign or foreign identifier (foreign or foreign key)
002 - Topic 2 - Elaboration of the conceptual design….pdf - Page 9
Dependency relationships between strong and weak entities
- Existence dependency
- Dependency by identification
- N-ary relations
002 - Topic 2 - Elaboration of the conceptual design….pdf - Page 10
Other restrictions on relationships
- Exclusivity restriction
- Exclusion Restriction
- Inclusivity constraint
- Inclusion Restriction
- Redundancy
002 - Topic 2 - Elaboration of the conceptual design….pdf - Page 12
Extended entity-relationship model
Hierarchical relationships
- Partial without overlap
- Partial with overlap
- Total without overlap
- Total with overlap
002 - Topic 2 - Elaboration of the conceptual design….pdf - Page 15
3. Elaboration of the logical design. relational model
Relational databases
The relational model
Goals
- Physical independence
- logical independence
- Flexibility
- Uniformity
- Simplicity
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 3
Codd’s 12 Rules
- Information
- Guaranteed access
- Systematic treatment of null values
- Online catalog
- Data sublanguage
- Update views
- Insertions, modifications and deletions of level data
- Physical independence
- Logical Independence
- Independence of integrity
- Distribution Independence
- Not subversion
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 4
Structure of relational databases
Relationship or table
- Attributes
- Tuples
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 8
tuple
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 9
Domain
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 9
Grade
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 10
Cardinality
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 10
Formal definition of relationship
- Name
- Relationship header
- Scheme of the relationship
- Body of the relationship
- Relationship Status
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 11
Table properties (or relationships)
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 12
Table Types
- Foundation
- Views
- Snapshots
- Temporary
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 12
Keys
- Candidate key
- Primary key
- Alternative key
- External, alien or foreign key
002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 13
Restrictions
null value (null)
Restrictions inherent to the relational model
Semantic or user restrictions
- Primary key constraint
- Unique constraint (unique)
- Mandatory restriction (not null)
- Referential integrity or foreign key constraint
- Verification or validation restriction (check)
- Triggers, triggers or triggers
*002 - Topic 3 - Elaboration of the logical design. Relational model.pdf - Page 17
4. Transformation from the entity-relationship model to the relational model
*002 - Topic 4 - Transformation of the entity-relationship model to the relational model.pdf
5. Normalization of relationships
Functional dependencies
002 - Topic 5 - Normalization of relationships.pdf - Page 3
Full functional dependency
002 - Topic 5 - Normalization of relationships.pdf - Page 4
Transitive functional dependency
002 - Topic 5 - Normalization of relationships.pdf - Page 5
Multi-valued functional dependency
002 - Topic 5 - Normalization of relationships.pdf - Page 6
Join Dependency (JOIN)
002 - Topic 5 - Normalization of relationships.pdf - Page 7
Normal Forms
002 - Topic 5 - Normalization of relationships.pdf - Page 9
First Normal Form (1NF)
002 - Topic 5 - Normalization of relationships.pdf - Page 10
Second Normal Form (2FN)
002 - Topic 5 - Normalization of relationships.pdf - Page 11
Third Normal Form (3NF)
002 - Topic 5 - Normalization of relationships.pdf - Page 13
Boyce-Codd Normal Form (BCNF)
002 - Topic 5 - Normalization of relationships.pdf - Page 14
Fourth Normal Form (4NF)
002 - Topic 5 - Normalization of relationships.pdf - Page 15
Fifth Normal Form (5FN)
002 - Topic 5 - Normalization of relationships.pdf - Page 16
domain-key normal form (DKNF)
002 - Topic 5 - Normalization of relationships.pdf - Page 17
Normal form of denormalization
002 - Topic 5 - Normalization of relationships.pdf - Page 18