Database systems Flashcards
Conceptual Data Model
Detailed, technical data models no database-specific information
Physical data model
Takes all constraints and properties of a relational database into account. Concrete structure can be created
Identifyer
objects in relationships must be uniquely identified at all times
Attributes
Concrete properties of entities are described as attributes. Each attribute has a name and a precisely-defined value range
Entity
Something separate and distinct that can be uniquely identified among other similar entities.
Subqueries
To formulate further SELECT statements within SELECT statements, Often used to formulate further conditions in the context of WHERE or Having. Schema: MAIN QUERY MAIN QUERY TABLE filter condition WHERE (Subquery );
ER-diagram
Used to display the all-important elements of a database structure. Only used to model database schemas. Elements: Entities, Attributes, Keys and Relationships
Normalization
Optimizes the structure of a database and the normal form of a database is a measure of this structure
Redundancy
The property of a dataset that describes that the deletion of data doesn’t necessarily result in a loss of information. For this, information must be saved more than once
First normal form
Conditions to be fulfilled:
- All attributes must contain singe values. Composite values are not allowed
- Each individual data record uniquely identified with primary key
Second normal form
Only relevant for tables with compound primary keys
- Criteria first normal form must be met
- Each non-key attribute is always dependent on the entire compound primary key and not just part of it
Third Normal form
Criteria of the first normal form and in case of composite primary key, the second normal form must be fulfilled.
-Any non-key attribute depends directly on the key attributes that are not part of the Primary Key