Unit 2 - Design Flashcards
Alternate Key
A candidate key that has not been selected as the primary key or part of the composite key.
Analytical Database
A database that is used primarily to generate reports based on data that doesn’t frequently change. It is optimized for fast querying.
Anomalies
Inconsistencies that may occur when there are redundancies or dependencies between non-key attributes.
Associative Entities
AKA junction or bridge entity
An entity that exists to convert a many-to-many relationship between two other entities into two one-to-many relationships in order to normalize the database.
Associative Entity
An entity that exists in order to normalize a many-to-many relationship between two other entities.
Attribute
A characteristic or property of an entity that is stored in the database. Each column in a database table represents an attribute.
Boyce-Codd Normal Form
The Boyce-Codd normal form, also known as BCNF, is viewed as 3.5NF. BCNF requires that the database design first fulfills the requirements of the third normal form (3NF) but also has every determinant in a table as a candidate key.
Business Process
A set of activities or tasks that are performed in a coordinated manner to achieve a specific business goal.
Business Use Case
A detailed description of how a system will be used to achieve a specific business goal in a certain scenario.
Candidate Key
A set of one or more attributes that can uniquely identify each entry in a table.
must have 2 properties:
Uniqueness: Each combination of values in the candidate key must be unique across all the rows in the table. No two rows can have the same values for the candidate key.
Irreducibility (Minimality): No proper subset of the candidate key should have the uniqueness property.
In other words, if any attribute is removed from the candidate key, it should no longer be able to uniquely identify each row.
Cardinality
The description of the numerical relationships between two tables.
Cartesian Product
An over-counting of data in a query that computes aggregates or counts when the query includes data from multiple tables that are not directly connected.
Chasm Trap
A condition in which two one-to-many joins converge on a single table.
Chen Notation
A visual representation technique for entity-relationship modeling that uses rectangles to represent entities, diamonds for relationships, and lines to represent cardinality and participation constraints.
Composite Key
A key that consists of two or more foreign keys, which produces a unique id for the record. Useful, but not mandatory in an associative identity. A new primary key for the entity would be a better choice if it will be referenced from other tables.
EX: entities movie and actor would be a many to many relationship. add an associate entity “role” which would have the movieID and actorID foreign keys as the composite key
Connection Trap
A situation where a complex relationship pattern can lead to ambiguous or incorrect query results and challenges in maintaining data integrity.
Data Warehouse
A centralized data repository collected from various sources, optimized for analysis, reporting, and decision making. A type of analytical database that is denormalized.
Denormalization
A process that intentionally duplicates data or reintroduces redundancy to increase query performance, simplify data retrieval, and optimize certain operations.
Dimension Table
A table that supports a fact table by storing additional details about its data.
Direct Relationship
A relationship that does not require an associative table—in other words, a one-to-one or one-to-many relationship.
Fact Table
A table that contains quantitative data such as sales figures or other measurable metrics.
Fan Trap
The fan trap occurs when you have two one-to-many joins that follow a parent-child form. You will probably get incorrect results if you try to aggregate both measures simultaneously.
Fifth Normal Form (5NF)
The fifth normal form (5NF) is mostly conceptual. A relation between tables is in 5NF if it is in the fourth normal form (4NF) and contains no join dependencies.
First Normal Form (1NF)
A relational database system’s first normal form (1NF) defines the fundamental rules for normalizing a single table to have unique column names and no duplicate rows.
(Ensure each table contains only atomic (indivisible) values. Create separate
tables for repeating groups or multivalued attributes.)