1.3bFree
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
In a college, each teacher reports to one head of department: a neat tree. But a teacher teaches several sections, and each section has several teachers: that is no longer a tree. How should a database draw these links?
The book describes three logical models. Each one answers a single question differently: how many parents may one entity have, and what connects them?
Step 1 / 7
In a college, each teacher reports to one head of department: a neat tree. But a teacher teaches several sections, and each section has several teachers: that is no longer a tree. How should a database draw these links?
The book describes three logical models. Each one answers a single question differently: how many parents may one entity have, and what connects them?
Hierarchical: an organizational chart or inverted tree, where each entity has only one parent and the top is the root. Network: an entity may have many parents, so it is more flexible. Relational: simple tables with no physical links; relationships come from matching data values.
Q1. Name the model: (a) Principal → HODs → teachers, each teacher with one HOD. (b) Teachers linked to many sections, sections to many teachers. (c) Two tables joined by the same roll number.
hierarchical · network · relational
Q2. In the book's network diagram, list the parents of Entity-4 and Entity-6.
Each has two parents
Q3. Students(Roll, Name, SectionID) has the row (12, Ali, B). Sections(SectionID, Room) has the rows (A, 7) and (B, 12). Which room is Ali in?
Room 12
✗ Drawing an entity with two parents in a hierarchical model.
✓ In a hierarchy each entity reports to only one entity above it. Two parents make it a network.
✗ Placing the root at the bottom of the inverted tree.
✓ It is called inverted because the root is at the top, like the head of an organizational chart.
✗ Saying relational tables are linked by pointers.
✓ The relationships are based on the data content of the entities, not pointer chains or other structural connections.
1. A collection of concepts used to describe the structure of a database is a:
(b) A data model describes the entities and how they relate.
2. The hierarchical data model has the general shape of a(n):
(a) It looks like an organizational chart, an inverted tree with the root at the top.
3. In which model can an entity have more than one parent?
(b) Network entities may take part in as many subordinate relationships as desired.
4. Relationships in the relational model are based on:
(c) Matching values in the data link the tables, as SectionID links Students and Sections.
5. True or false: the network data model is more popular and widely used than the relational model.
(b) False. Relational databases, such as Microsoft Access, are the most widely used, and the book notes they are easier to change.