Chapter - Database Concept-2 Pu
Chapter - Database Concept-2 Pu
ENTITY
ATTRIBUTE
RELATIONSHIP
7. Explain different types of relationship?
A- Types of Relationship –
1) one to one relationship (1:1) – One instance of one entity is related with one instance of
another entity.
COLLEGE
PRINCIPAL
2) One to many relationship (1: M) - One instance of one entity is related with one or more
than one instances of another entity.
LECTURER
STUDENTS
3) Many to one relationship (M: 1) - Many instances of one entity is related with one instance
of another entity.
STUDENTS
STUDENTS
COURSE
4) Many to many relationship (M: M) - Many instances of one entity is related with many
instances of another entity.
STUDENTS
PROJECTS
FIVE MARKS QUESTION
COLLEGE
SCI COMMERCE
S4 S1
S1 S2
2) Network Model –
Data is represented by collection of records.
Relationship among data is represented by links.
Entities are organized in a graph structure.
Entities can be accessed through several paths of the database model.
It represents many-to-many relationships in data
DEPARMENT STUDENTS
COURSES TEACHERS
3) Relational Model –
It was developed by E.F.CODD in 1970
In this model all data is maintained in the form of tables.
Each table consists of rows and columns.
Row is called as tuple and column is called attribute.
Table consists of primary key.