Databases Flashcards
Study for CP2404 final exam
attribute
A characteristic of an entity or object. An attribute has a name and data type.
binary relationship
An ER term for an association (relationship) between two entities. For example PROFESSOR teaches COURSE.
business rule
A description of a policy, procedure or principle within an organisation. For example, a pilot cannot be on duty for more than 10 hours during a 24-hour period, or a professor may teach up to four classes during a semester.
candidate key
A minimal superkey; that is, a key that does not contain a subset of attributes that is itself a superkey.
cardinality
A property that assigns a specific value to connectivity and expresses the range of allowed entity occurrences associated with a single occurrence of the related entity.
class diagram notation
The set of symbols used in the creation of class diagrams.
closure
A property of relational operators that permits the use of relational algebra operators on existing tables (relations) to produce new relations.
completeness constraint
A constraint that specifies whether each entity supertype occurrence must also be a member of at least one subtype. The completeness constraint can be partial or total. Partial completeness means that some supertype occurrences might not be members of nay subtype. Total completeness means that every supertype occurrence must be a member of at least one subtype.
composite attribute
An attribute that can be further subdivided to yield additional attributes. For example, a phone number such a 6158982368 may be divided into an area code (615), an exchange number (898), and a four digit code (2368). Compare to simple attribute
composite entity
An entity designed to transform an M:N relationship to two 1:M relationships. The composite entity’s primary key comprises at least the primary keys of the entities that it connects. Also known as bridge entity. See also linking table.
composite identifier
In ER modeling, a key composed of more than one attribute.
composite key
A multiple attribute key.
conceptual model
The output of the conceptual design process. The conceptual model provides a global view of an entire database and describes the main data objects, avoiding details
conceptual schema
A representation of the conceptual model, usually expressed graphically.
connectivity
The classification of the relationship between entities. Classifications include 1:1, 1:M, and M:N.
constraint
A restriction placed on data usually the form of rules. For example, “A student’s GPA must be between 0.00 and 4.00.” Constraints are important because they help to ensure data integrity.
crow’s foot notation
A representation of the entity relationship diagram that uses a three-pronged symbol to represent te “many” sides of the relationship.
data dictionary
A DBMS component that stores metadata–data about data. Thus, the data dictionary contains the data definition as well as their characteristics and relationships. A data dictionary may also include data that are external to the DBMS. Also know as an information resource dictionary.
data redundancy
A condition in which the data environment contains redundant (unnecessarily duplicated) data.
database system
An organisation of components that defines and regulates the collection, storage, management, and use of data in a database environment.
dependent
An attribute whose value is determined by another attribute.
derived attribute
An attribute that does not physically exist within the entity and is derived via an algorithm. For example, the Age attribute might be derived by subtracting the birth date from the current date.
design trap
A problem that occurs when a relationship is improperly or incompletely identified and is therefore represented in a way that is not consistent with the real world. The fan trap is the most common design trap.
determinant
Any attribute in a specific row whose value directly determines other values in that row.
determination
The role of a key. In the context of a database table the statement “A determines B” indicates that knowing the value of attribute A means that the value of attribute B can be looked up.
difference
Difference is a relational set operator that yields all rows in one table that are not found in the other table; that is, it subtracts one table from the other table which eliminates duplicates. Tables must be union compatible.
disjoint subtype
In a specialisation hierarchy, a unique and nonoverlapping subtype entity set.
Domain
In data modelling to construct used organise and describe an attribute’s set of possible values
Entity
person place thing concept or events for which data can be stored
Entity Cluster
a virtual entity type used to represent multiple entities and relationships in the ERD. An entity cluster is formed by combining multiple interrelated entities into a simple single abstract entity object. An entity cluster is considered virtual abstract because it is not really an entity in the final ERD.
Entity instance
in ER modelling a specific table row also known as an entity occurrence.
entity integrity
the property of a relational table that guarantees each entity has unique value in primary key and that the key has no null values.
entity relationship diagram
A diagram that depicts an entity relationship model’s entities, attributes, and relations.
entity subtype
in a generalisation specialisation hierarchy a subset of an entity super-type the entity super-type contains the common characteristics and the subtypes contained the unique characteristics of each entity
entity supertype
in a generalisation specialisation hierarchy a generic entity chance it contains the common characteristics of entity sometimes.
existence dependent
A property of an entity his existence depends on when I’m on the entities in such an environment the existence of independent table must be created and loaded first because the existence dependent he cannot reference the table that does not yet exist.
existence independent
A property of an entity that can exist apart from one or more related entities. Such a table must be created first one referencing in an existence dependent table.
external model
the application program is view of the data environment. Given its business focus, and external model works with the data subset of the global database schema.
external schema
the specific representation of an external view; the end users you of the daughter environment.
Fan trap
A design error that occurs when one entity is in one to many relationships with other entities that produces an association among the other entities that is not expressed in the model.