Lecture 3: The Relational Database Model

Database Systems

J Mwaura

Relational Table Properties

r-modals

Relational Database Keys

r-modals

Integrity Rules

r-modals

Data Dictionary & System Catalog

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

System catalog- A detailed system data dictionary that describes all objects in a database

Sample Data Dictionary

data-dict

Relational Db Relationships

1:M relationship is the relational modeling ideal. Therefore, this relationship type should be the norm in any relational database design

1:1 relationship should be rare in any relational database design

M:N relationships cannot be implemented as such in the relational model

Indexes

Index -An ordered array of index key values and row ID values (pointers). Indexes are used to speed up & facilitate data retrieval

Unique index -An index in which the index key can have only one associated pointer value (row)

Codd's Relational Db Rules

data-dict

Codd's Relational Db Rules

data-dict

End of Lecture 3

Database Systems

That's it!

Queries about this Lesson, please send them to: jmwaura@jkuat.ac.ke

*References*

  • Database Systems: Design, Implementation, and Management, 12th ed. Carlos Coronel & Steven Morris
  • Database Modeling and Design; Logical Design, 5th ed. Taby Teorey et.al
  • Fundamentals of database systems, 6th ed. Ramez Elmasri & Shamkant B. Navathe
Courtesy of
Database Systems