Find minimum number of tables required for converting the following en...
Rules for finding a minimum number of tables required for an ER diagram:
1. A strong entity with single or composite attributes requires one table.
2. A strong entity with multivalued attributes requires two tables.
3. In the case of many to many relations between two entities, 3 tables are required.
There is one to many relationships between R1 and R2.
So, two tables are required for two entities. But, entity R1 contains multivalued attribute B, due to which one table for this is also needed.
Here we have 1 to Many relation so we requires two tables.
Attribute B being multi-valued, we need to remove the multi-valued attribute B to convert the given entity-relationship diagram into a relational database.
As relational database do not allow multi-valued attributes. We have to introduce a new table.
So, the number of tables is as below:
R1
R1 2R2
A table for B (Multi-valued attribute).
So, a total of 3 tables are required for the given entity relational diagram.
Hence, the correct answer is 3.