Professional Documents
Culture Documents
05-The Relational Model
05-The Relational Model
Instructor: Najib Ullah Sadaat | Email: najeeb.szu@gmail.com | Linked In, Twitter, Instagram: @NajeebSadaat | Contacts: 07(0,6,8)6 24 90 24 11/24/2023
2 Lecture Outline
Database Models
The Relational Model
Relation
Example Relation
Instructor: Najib Ullah Sadaat | Email: najeeb.szu@gmail.com | Linked In, Twitter, Instagram: @NajeebSadaat | Contacts: 07(0,6,8)6 24 90 24 11/24/2023
3
The Relational Model
The single most important standard in database processing today.
This model was developed and published in 1970 by Edgar Frank Codd,
commonly referred to as E. F. Codd.
Today, it is used for the design and implementation of every commercial
relational database worldwide.
Instructor: Najib Ullah Sadaat | Email: najeeb.szu@gmail.com | Linked In, Twitter, Instagram: @NajeebSadaat | Contacts: 07(0,6,8)6 24 90 24 11/24/2023
4 The Relational Model
Two concepts:
1. Database is used to keep track of THINGS
2. Relational DBMS products store data in the form of TABLES.
Clarification:
3. The formal name for a “thing” that is being tracked is ENTITIY, which
is defined as something of importance to the user that needs to be
represented in the database.
4. The formal name for the “table” is RELATION.
Instructor: Najib Ullah Sadaat | Email: najeeb.szu@gmail.com | Linked In, Twitter, Instagram: @NajeebSadaat | Contacts: 07(0,6,8)6 24 90 24 11/24/2023
5
Relation
A relation is a two-dimensional table consisting of rows and columns that has
the following characteristics:
1. Rows contain data about an entity
2. Columns contain data about attributes of the entity
3. Cells of the table hold a single value
4. All entries in a column are of the same kind
5. Each column has a unique name
6. The order of the columns is unimportant
7. The order of the rows is unimportant
8. No two rows may hold identical sets of data values
Instructor: Najib Ullah Sadaat | Email: najeeb.szu@gmail.com | Linked In, Twitter, Instagram: @NajeebSadaat | Contacts: 07(0,6,8)6 24 90 24 11/24/2023
6
Example Relation
Instructor: Najib Ullah Sadaat | Email: najeeb.szu@gmail.com | Linked In, Twitter, Instagram: @NajeebSadaat | Contacts: 07(0,6,8)6 24 90 24 11/24/2023
7
Now, Create Example Relations
Teacher
Course
Book
Car
Customer
Country
etc
Instructor: Najib Ullah Sadaat | Email: najeeb.szu@gmail.com | Linked In, Twitter, Instagram: @NajeebSadaat | Contacts: 07(0,6,8)6 24 90 24 11/24/2023
8
Thank You!
Instructor: Najib Ullah Sadaat | Email: najeeb.szu@gmail.com | Linked In, Twitter, Instagram: @NajeebSadaat | Contacts: 07(0,6,8)6 24 90 24 11/24/2023