DBMS TW-2
DBMS TW-2
Follow the steps given below to draw an ER model for the library management application −
Book
Publisher
Member
Section
Granter
Multiple books are arranged in a single section and one section has multiple
books. Hence, the relationship between book and section is many to one.
One member borrows multiple books and multiple books can borrow a single
person. Hence, the relationship between member and book is one-to-many.
One publisher can supply multiple books and multiple books can be supplied
by a single publisher. Hence, the relationship between publisher and book is
one-to-many.
One granter can grant multiple members and multiple members can grant a
single granter. Hence, the relationship between grantor and member is one-to-
many.
Step 5 − Complete ER diagram
As it can be observed in this example, the entities are present with their attributes. At the
same time, the direct relations between the attributes are also shown, such as several CDs and
books are present, so to differentiate, they have specific ISBNs and ISSNs. One key element
to understand here is that proper symbols are used to understand an entity diagram.
Example 2 - Library Management System
Here is a straightforward ER diagram for the Library Management System. You can observe
the entity relations quite clearly, and their attributes are evident as well.
Example 3 - ER Diagram of Library Management
Below is a much more complex example of an ER diagram. As it can be seen, several new
entities are part of this ER diagram. One more exciting thing about this ER diagram is that
one entity is linked to more than one entity.