CSC 332 Database Management
CSC 332 Database Management
Table: is perceived as a 2D structure composed of rows and columns. (also called a relation
because the person who created it used the two terms synonymously.) so Relation = table =
entity sets)
Keys (https://byjus.com/gate/types-of-keys-in-dbms)
A key refers to an attribute/a set of attributes that help us identify a row (or tuple) uniquely in a
table (or relation).
1. In the relational model, keys are important because they are used to ensure that each row
in a table are uniquely identifiable
2. Keys are also used to establish relationship among tables
3. Used to ensure data intergrity
Determination is the concept of using an attribute to determine the other attributes in an entity set
Determination is the state in which knowing the value of one attribute makes it possible to
determine the value of other attributes.
49
ekpo
Functional dependencies
Means the value of one or more atrributes determines the value of one ore more other attributes
Functional dependence can involve a determinant that involves more than one atribute.
Types of keys
1. Composite keys : is a key thats composed of more than one attributes
2. Superkey : is a key that can uniquely identify any row in a table:
in other words we can say a super key functionally determines every attribute in a row
Entity integrity
Is a condition in which each row in the table has its own unique identity to ensure entity integrity
the primary key must have two requirement ( 1. All values in primary key must be unique. 2. No
key attribute in the primary key can be Null
Data dictionary
System catalog
The data dictionary contains at least all of the characteristic names and meta data.
● Provide consistency in the collection and use of data across multiple members of a
research team
System catalog
Contains meta data and can be described as a detailed system data dictionary that describes all
object within the database and includes data about including data about table names
System catalog is actually system created DB whose tables store the user-created database and
its contents..
Therefore, the system catalog tables can be queried just like the user-created database system.
As new tables are added to the DB, the sytem catalog documents these tables, and uses it to
check and eliminate Homonyms( indicates the use of same name to label different attributes)
and synonyms (a synonym is the opposite of homonyms that is the use of different names to
describe same attribute)
1. 1:1 one to one: is the norm for relational DB , it is easily implemented in a relational
model, by puting the one key.
As the name implies, 1 entity can relate to only one entity and vice versa.