Lesson 2 Flashcards
Data modeling
The process of creating a specific data model for a determined problem domain
Problem domain
A clearly defined area within the real-world environment, with a well-defined scope and boundaries that will be systematically addressed
A Data model:
- A representation, usually graphic, of a complex “real-world” data structure.
- Data models are used in the database design phase of the Database Life Cycle
Entity
A person, place, thing, concept, or event for which data can be stored
Attribute
- A characteristic of an entity or object.
- An attribute has a name and a data type.
One-to-many (1:M or 1…*) relationship
- Associations among two or more entities that are used by data models.
- In a 1:M relationship, one entity instance is associated with many instances of the related entity.
Many-to-many (M:N or …) relationship
Association among two or more entities in which:
- one occurrence of an entity is associated with many occurrences of a related entity &
- one occurrence of the related entity is associated with many occurrences of the first entity.
One-to-one (1:1 or 1…1) relationship
1:1 means only two entities are involved, and each instance in one entity is related to only one instance in the other
Constraint
A restriction placed on data, usually expressed in the form of rules
- Each record from first table is associated with many records in second table
- But each record in second table is associated with one record in first table.
What type of relationship is it?
One-to-many (1:M) relationship
Single record in the first table is related to only one record in the second table and vice versa.
What type of relationship is it?
One-to-one (1:1) relationship
Each record from first table is associated with many records in second table and one record in second table is associated with many records in first table
What type of relationship is it?
Many-to-many (M:M) relationship
Business rule
For example, a pilot cannot be on duty for more than 10 hours during a 24-hour period
A description of a policy, procedure, or principle within an organization.
Hierarchical model
An early database model whose basic concepts and characteristics formed the basis for subsequent database development
Segment
In the hierarchical data model, the equivalent of a file system’s record type
Network model
An early data model that represented data as a collection of record types in 1:M relationships.
Schema
A logical grouping of database objects, such as tables, indexes, views, and queries that are related to each other.
Subschema
The portion of the database that interacts with application programs.
Data manipulation language (DML)
The set of commands that allows an end user to manipulate the data in the database, such as SELECT, INSERT, UPDATE, DELETE, COMMIT, and ROLLBACK.
Data definition language (DDL)
The language that allows a database administrator to define the database structure, schema, and subschema
Relational database
a collection of relations that contain the data describing a particular business environment.
Relational model
- Each relation (table) is conceptually represented as a two-dimensional structure of intersecting rows and columns.
- The relations are related to each other through the sharing of common entity characteristics (values in columns).
Relation
A logical construct perceived to be a two-dimensional structure that represents an entity set in the relational model composed of:
- intersecting rows (entities)
- columns (attributes)
Tables are somtimes called ______
Relation