Chapter3 RelationalDatabaseModel Part2
Chapter3 RelationalDatabaseModel Part2
• Determination: state in which knowing the value of one attribute makes it possible
to determine the value of another attribute.
Based on the relationships among the attributes
Candidate keys are called candidates because they are the eligible options from which the designer will choose when
selecting the primary key.
Types of Keys
Primary key: attribute or combination of attributes that uniquely identifies a row
Relationships between tables are implemented through common attributes as a form of controlled
redundancy.
Foreign key: is the primary key of one table that has been placed into another table to create a
common attribute.
Integrity Rules
• Integrity rules are needed to inform the DBMS about certain constraints in the real world.
• It is used to maintain the quality of data stored in a database.
• Relational database integrity rules are very important to good database design.
• Relational database management systems (RDBMSs) enforce integrity rules automatically.
Integrity Rules
• Entity integrity: condition in which each row in the table has its own unique identity.
• Referential integrity: every reference to an entity instance by another entity instance is
valid.
• Domain integrity: rules and other processes that restrict the format and type of data
recorded in the database.
A domain is defined as a set of suitable values that a column is permitted to enclose.