Ch3 Flashcards
(44 cards)
Entity
A person, place, event, or thing for which we intend to collect data
Attribute
Describes a characteristics of an entity
Entity Set
A group of entities of the same type
Table/Relation
Contains a group of related entities
Rows and Columns
A table is composed of this
Row
Tuple
Each __ represents a single __ within the entity set
Row, entity
Each ___ represents an ___ and is identified by a district name
Column, Attribute
Each row/column intersection represents a single data value
Atomic
Cardinality
The number of tuples in a table
Degree
The number of column is known as
Attribute Domain
All values in a column must conform to the same data format (type) and must be within a specified range
Changing the order of the rows and/or column___
Does not change the table
Key
Consists of one or more attributes that determines other attributes within an entity
Composite key
A key that composed of more than one attributes
If attribute B is functionally dependent on a composite key A but not any subset of A then B is _____ on A
Fully Functionally dependent
Superkey
An attribute or a combination of attributes that uniquely identifies each row in a table
Candidate Key
A minimal superkey, i.e., it does not contain a subset of attributes that is itself a superkey
Primary Key
A candidate key selected to uniquely identify an entity
Cannot have null values
Enforces Entity Integrity
Is a superkey as well as a candidate
Entity Integrity
Guarantees that each entity is uniquely identified by a non-null primary key value
Foreign Key
An attribute (or a combination of attributes) in one table whose values must either match the primary key values in a designated table to be null
Used to logically link one table with another
Enforces Referential Integrity
Referential Integrity
Guarantees valid references to another table, i.e., cannot delete a tuple from a table that is references by in another table through a foreign key
Secondary Key
Used for data retrieval purpose
May consist of a single attribute or a combination of attributes
The DBMS maintains indexes on secondary keys for faster search and retrieval of data
May have duplicate values
Relational Database Operators
Based on relational algebra theory
Define functions to manipulate data in one or more tables (relations)
Application of a relational operator to one or more tables results in another table