First time here? Checkout the FAQ!
+4 votes

How many minimum relations required for given ER diagram ?


asked in Databases by Active (1.2k points) 6 14 | 191 views
5 tables

for every entity require 5 tables and for relation r6 it there is weak entity but it indicated with m:n relation in figure so 5 tables required
I am getting 8 as an answer. 5 for each entity set and 3 different tables for the relationships R1, R2 and R5 since they are many-to-many relationships. Please correct me if i am wronge.
When a relation is in 1-1 form there is no need to create a table. Only for M:N relations we construct seperate tables so no need to constuct tables for 1-1 relations.
but we have to maintain foreign key constraints here.

2 Answers

+1 vote
5 for each entity set and 3 different tables for the relationships R1, R2 and R5 since they are many-to-many relationships.Thus, total 8.
answered by (201 points) 3 12
R5 is a 1 to 1 relationship  given in diagram









NOTE: We can not merge $E_{1}R_{4}E_{4}$ Bcz in $R_{1}(A,D))$ $A$ have to refers to "PK" of $E1$ and if we merge  $E_{1}R_{4}E_{4}$ then ${A,K}$  will be PK of this table not just $A$


+1 vote

Total 8 tables are required

Let (EntityName,NumberOf Table)


E2 has 3 tables because in suppose we have 

Recursive Relationship -types of relationships in er diagram

So 3 tables required for E2 and E5 is weak entity so 2 tables required

weak entity type(entity and its types)

total = 1+3+1+1+2 = 8 tables 

Reference :-

answered by Boss (5.9k points) 2 6 15

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Top Users Oct 2017
  1. Arjun

    23324 Points

  2. Bikram

    17048 Points

  3. Habibkhan

    7808 Points

  4. srestha

    6222 Points

  5. Debashish Deka

    5430 Points

  6. jothee

    4958 Points

  7. Sachin Mittal 1

    4772 Points

  8. joshi_nitish

    4286 Points

  9. sushmita

    3964 Points

  10. Rishi yadav

    3794 Points

Recent Badges

Nice Comment junaid ahmad
Popular Question iarnav
Notable Question makhdoom ghaya
Popular Question LavTheRawkstar
Avid Voter atul_21
Popular Question hem chandra joshi
100 Club nikhil_cs
Notable Question Sukannya
Notable Question Sourabh Kumar
Notable Question shikharV
27,287 questions
35,135 answers
33,223 users