Question (Janata Bank Ltd. Assistant Network Engineer (SO) Exam: 2020): Consider an Entity-relationship (ER) model where R is defined as a many-to-one relationship from entity set E1 to entity set E2. If E1 and E2 participate totally in R and cardinality of E1 is greater than the cardinality of E2, which of the following is true about R?
a) Every entity in E1 is associated with exactly one entity in E2
b) Some entity in E1 is associated with more than one entity in E2
c) Every entity in E2 is associated with exactly one entity in E1
d) Every entity in E2 is associated with at most one entity in E1
Imagine your first week as an IT officer at a bank. The branch manager hands you one page: "Customers open accounts at a branch. An account can be joint. Customers take loans, and every loan is repaid in monthly instalments. Build us the database." You know SQL, so the tempting move is to open a terminal and start typing CREATE TABLE. Experienced designers do not. They first draw a picture of the business on one sheet of paper: which things the bank keeps data about, what it records about each, and how the things are tied to one another. Only when everyone agrees on the picture do they build tables. That picture is an ER diagram, and this chapter teaches you to read it and draw it.
By the end you will be able to: say what the ER model is and why designers use it; pick out entities, attributes and relationships from a plain-language story; name every kind of attribute and its symbol; tell super, candidate and primary keys apart; read the degree, the role names, the cardinality ratio (1:1, 1:N, N:1, M:N) and the participation of any relationship, in whichever notation the question uses; spot a weak entity and its partial key; and draw a complete, correct Chen diagram for a story. Turning that diagram into tables is the next chapter.