ER Diagrams: Conceptual Database Design – Grade 13 A/L ICT Notes 8.4

© 2026 schoolict.net (Ruwan Mangala Suraweera)

8.4 ER Diagrams: Conceptual Database DesignER රූප සටහන්: සංකල්පීය දත්ත සමුදාය සැලසුම

Grade 13 A/L ICT · Lesson 813 ශ්‍රේණිය A/L ICT · පාඩම 8

Prints all tabs in the language you are reading. Use “Save as PDF” in the print window to keep a copy.ඔබ කියවන භාෂාවෙන් සියලු tabs මුද්‍රණය වේ. පිටපතක් තියාගන්න print window එකේ “Save as PDF” තෝරන්න.
🎬Video coming soon in this language. Switch language to watch the other video.මේ භාෂාවෙන් වීඩියෝව ඉක්මනින් එනවා. අනෙක් වීඩියෝව බලන්න භාෂාව මාරු කරන්න.

In this videoමේ වීඩියෝවේ

  • ER diagrams model the conceptual schema.ER රූප සංකල්පීය ක්‍රමානුරූපය ආකෘතිගත කරයි.
  • Rectangle = entity, ellipse = attribute, diamond = relationship.සෘජුකෝණාස්‍රය = ආයතනය, ඉලිප්සය = උපලක්ෂණය, දියමන්තිය = සම්බන්ධතාව.
  • Identifiers are underlined.හඳුනාගැනීම් යටි ඉරි ඇඳේ.
  • Cardinality is 1:1, 1:N or M:N.ගණනීයතාව 1:1, 1:N හෝ M:N.
  • EER adds supertypes and subtypes.EER supertypes සහ subtypes එක් කරයි.
Conceptual schemaER diagramEntityAttributeEntity identifierRelationshipCardinality

Notesසටහන්

Syllabus 8.4. The conceptual schema shows what data an organisation needs, without tables or code. We draw it as an Entity Relationship (ER) diagram with entities, attributes, entity identifiers, relationships and cardinality, and meet Extended ER (EER) ideas such as subtypes.විෂය නිර්දේශය 8.4. සංකල්පීය ක්‍රමානුරූපය වගු හෝ කේත නැතිව ආයතනයකට අවශ්‍ය දත්ත පෙන්වයි. අපි එය ආයතන, උපලක්ෂණ, ආයතන හඳුනාගැනීම්, සම්බන්ධතා සහ ගණනීයතාව සහිත ER රූප සටහනක් ලෙස අඳිමු; subtypes වැනි EER අදහස් ද හඳුනා ගනිමු.

1. Building blocks1. මූලික කොටස්

ER diagram (Chen notation)ClassStudentSubjecthastakes1NMNClassIDClassNameStudentIDNameSubjectCodeTitleRectangle = entity · ellipse = attribute (underlined = identifier) · diamond = relationship
ER diagram for a schoolපාසලක් සඳහා ER රූප සටහන
1
Entity (rectangle)ආයතනය (සෘජුකෝණාස්‍රය)
A thing we store data about: Student, Class, Subject.දත්ත ගබඩා කරන දෙයක්: Student, Class, Subject.
2
Attribute (ellipse)උපලක්ෂණය (ඉලිප්සය)
A property of an entity: Name, Title.ආයතනයක ගුණයක්: Name, Title.
3
Identifier (underlined)හඳුනාගැනීම (යටි ඉරි)
Attribute that is unique for each entity: StudentID.එක් එක් ආයතනයට අනන්‍ය උපලක්ෂණය: StudentID.
4
Relationship (diamond)සම්බන්ධතාව (දියමන්තිය)
An association between entities: has, takes.ආයතන අතර සම්බන්ධයක්: has, takes.

2. Attribute types2. උපලක්ෂණ වර්ග

  • Simple (Age) vs composite (Address = Street + City).සරල (Age) සහ සංයුක්ත (Address = Street + City).
  • Single-valued vs multi-valued (Phone numbers) – double ellipse.තනි අගය සහ බහු අගය (දුරකථන අංක) – ද්විත්ව ඉලිප්සය.
  • Derived (Age from DateOfBirth) – dashed ellipse.ව්‍යුත්පන්න (DateOfBirth වෙතින් Age) – ඉරි ඉලිප්සය.

3. Cardinality3. ගණනීයතාව

Typeවර්ගයMeaningඅර්ථයSchool exampleපාසල් උදාහරණය
1:11:1one to oneඑකට එකPrincipal manages Schoolවිදුහල්පති පාසල කළමනාකරණය
1:N1:None to manyඑකට බොහෝClass has StudentsClass හි සිසුන්
M:NM:Nmany to manyබොහෝ ට බොහෝStudents take Subjectsසිසුන් විෂයයන් හදාරයි
🧮 Worked exampleවිසඳූ උදාහරණය Library scenario: “A member can borrow many books; a book can be borrowed by many members over time. Each book has one publisher.” Find the entities and cardinalities.පුස්තකාල අවස්ථාව: ආයතන සහ ගණනීයතා සොයන්න.
Entities: Member, Book, Publisher. Member–Book is M:N (borrows, with attribute DateBorrowed). Publisher–Book is 1:N (publishes). Identifiers: MemberNo, ISBN, PublisherID.ආයතන: Member, Book, Publisher. Member–Book M:N (borrows, DateBorrowed සමඟ). Publisher–Book 1:N. හඳුනාගැනීම්: MemberNo, ISBN, PublisherID.

4. Extended ER (EER)4. දිගු ER (EER)

EER adds specialisation/generalisation: a supertype Person can have subtypes Student and Teacher that inherit its attributes. Subtypes can be disjoint (only one) or overlapping (both).EER විශේෂීකරණය/සාමාන්‍යකරණය එක් කරයි: Person නම් supertype එකට එහි උපලක්ෂණ උරුම වන Student සහ Teacher subtypes තිබිය හැක. Subtypes disjoint (එකක් පමණි) හෝ overlapping (දෙකම) විය හැක.

💡 Read a relationship both ways: one Class has many Students; one Student is in one Class → 1:N.සම්බන්ධතාව දෙපැත්තටම කියවන්න: එක් Class එකකට සිසුන් බොහෝ; එක් සිසුවෙක් එක් Class → 1:N.
🚀 Beyond the syllabus (2026 update)🚀 විෂය නිර්දේශයෙන් ඔබ්බට (2026 යාවත්කාලීනය) Not required for the exam – read for interest.විභාගයට අවශ්‍ය නැත – දැනුම සඳහා කියවන්න. Design tools in 2026 can sketch an ER diagram from a written scenario, but you must still check cardinality and identifiers yourself.2026 සැලසුම් මෙවලම් ලිඛිත අවස්ථාවකින් ER රූපයක් අඳියි; නමුත් ගණනීයතාව සහ හඳුනාගැනීම් ඔබම පරීක්ෂා කළ යුතුය.

Key Wordsප්‍රධාන පද

Conceptual schemaසංකල්පීය ක්‍රමානුරූපය
High-level description of data needs without implementation detail.ක්‍රියාත්මක විස්තර නැති ඉහළ මට්ටමේ දත්ත අවශ්‍යතා විස්තරය.
ER diagramER රූප සටහන
Diagram of entities, attributes and relationships.ආයතන, උපලක්ෂණ සහ සම්බන්ධතා රූපය.
Entityආයතනය
A real-world thing about which data is stored.දත්ත ගබඩා කරන සැබෑ ලෝක දෙයක්.
Attributeඋපලක්ෂණය
A property that describes an entity.ආයතනයක් විස්තර කරන ගුණයක්.
Entity identifierආයතන හඳුනාගැනීම
Attribute whose value is unique for each entity.එක් එක් ආයතනයට අනන්‍ය අගයක් ඇති උපලක්ෂණය.
Relationshipසම්බන්ධතාව
An association between two or more entities.ආයතන දෙකක් හෝ වැඩි ගණනක් අතර සම්බන්ධය.
Cardinalityගණනීයතාව
How many instances of one entity relate to another.එක් ආයතනයක කොපමණ නිදසුන් අනෙකට සම්බන්ධද යන්න.
Composite attributeසංයුක්ත උපලක්ෂණය
Attribute made of smaller parts such as an address.ලිපිනය වැනි කුඩා කොටස්වලින් සෑදූ උපලක්ෂණය.
Multi-valued attributeබහු අගය උපලක්ෂණය
Attribute that can hold several values such as phone numbers.දුරකථන අංක වැනි අගයන් කිහිපයක් ගත හැකි උපලක්ෂණය.
Derived attributeව්‍යුත්පන්න උපලක්ෂණය
Attribute calculated from others such as age.වයස වැනි අනෙක් ඒවායින් ගණනය කරන උපලක්ෂණය.
EER diagramEER රූප සටහන
ER diagram extended with supertypes and subtypes.supertypes සහ subtypes එක් කළ ER රූපය.
Specialisationවිශේෂීකරණය
Dividing a supertype into more specific subtypes.supertype එකක් වඩා නිශ්චිත subtypes ලෙස බෙදීම.

Sample Q&Aආදර්ශ ප්‍රශ්න සහ පිළිතුරු

1What does a diamond show in an ER diagram?දියමන්තිය පෙන්වන්නේ?

Answerපිළිතුර: A relationship.සම්බන්ධතාවක්.

2How is an identifier shown?හඳුනාගැනීම පෙන්වන්නේ?

Answerපිළිතුර: Underlined attribute name.යටි ඉරි ඇඳි උපලක්ෂණය.

3Cardinality of Students and Subjects?සිසුන් සහ විෂයයන්?

Answerපිළිතුර: M:N – a student takes many subjects and a subject has many students.M:N.

4Give a derived attribute.ව්‍යුත්පන්න උපලක්ෂණයක්.

Answerපිළිතුර: Age, calculated from DateOfBirth.DateOfBirth වෙතින් Age.

5What is a multi-valued attribute?බහු අගය උපලක්ෂණය?

Answerපිළිතුර: An attribute with several values for one entity, e.g. phone numbers (double ellipse).දුරකථන අංක වැනි; ද්විත්ව ඉලිප්සය.

6What does EER add?EER එක් කරන්නේ?

Answerපිළිතුර: Supertypes/subtypes with inheritance (specialisation and generalisation).supertypes/subtypes සහ උරුමය.

MCQබහුවරණ ප්‍රශ්න

Choose the correct answer for each question.සෑම ප්‍රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.

Scoreලකුණු: 0 / 20

1In an ER diagram an entity is drawn as aආයතනය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Rectangle.සෘජුකෝණාස්‍රය.

2A relationship is drawn as aසම්බන්ධතාව

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Diamond.දියමන්තිය.

3An underlined attribute is theයටි ඉරි

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Identifier.හඳුනාගැනීම.

4One class has many students isඑක් පන්තිය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

One to many.එකට බොහෝ.

5Students and subjects have cardinalityසිසුන් සහ විෂයයන්

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Many to many.බොහෝ ට බොහෝ.

6Age calculated from date of birth is aවයස

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Derived.ව්‍යුත්පන්න.

7Address made of Street and City is aලිපිනය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Composite.සංයුක්ත.

8Person with subtypes Student and Teacher is shown in ansubtypes

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

EER.EER.

9Which term means: “High-level description of data needs without implementation detail”?“ක්‍රියාත්මක විස්තර නැති ඉහළ මට්ටමේ දත්ත අවශ්‍යතා විස්තරය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Conceptual schema – High-level description of data needs without implementation detail.සංකල්පීය ක්‍රමානුරූපය – ක්‍රියාත්මක විස්තර නැති ඉහළ මට්ටමේ දත්ත අවශ්‍යතා විස්තරය.

10Which term means: “Diagram of entities, attributes and relationships”?“ආයතන, උපලක්ෂණ සහ සම්බන්ධතා රූපය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

ER diagram – Diagram of entities, attributes and relationships.ER රූප සටහන – ආයතන, උපලක්ෂණ සහ සම්බන්ධතා රූපය.

11Which term means: “A real-world thing about which data is stored”?“දත්ත ගබඩා කරන සැබෑ ලෝක දෙයක්” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Entity – A real-world thing about which data is stored.ආයතනය – දත්ත ගබඩා කරන සැබෑ ලෝක දෙයක්.

12Which term means: “A property that describes an entity”?“ආයතනයක් විස්තර කරන ගුණයක්” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Attribute – A property that describes an entity.උපලක්ෂණය – ආයතනයක් විස්තර කරන ගුණයක්.

13Which term means: “Attribute whose value is unique for each entity”?“එක් එක් ආයතනයට අනන්‍ය අගයක් ඇති උපලක්ෂණය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Entity identifier – Attribute whose value is unique for each entity.ආයතන හඳුනාගැනීම – එක් එක් ආයතනයට අනන්‍ය අගයක් ඇති උපලක්ෂණය.

14Which term means: “An association between two or more entities”?“ආයතන දෙකක් හෝ වැඩි ගණනක් අතර සම්බන්ධය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Relationship – An association between two or more entities.සම්බන්ධතාව – ආයතන දෙකක් හෝ වැඩි ගණනක් අතර සම්බන්ධය.

15Which term means: “How many instances of one entity relate to another”?“එක් ආයතනයක කොපමණ නිදසුන් අනෙකට සම්බන්ධද යන්න” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Cardinality – How many instances of one entity relate to another.ගණනීයතාව – එක් ආයතනයක කොපමණ නිදසුන් අනෙකට සම්බන්ධද යන්න.

16Which term means: “Attribute made of smaller parts such as an address”?“ලිපිනය වැනි කුඩා කොටස්වලින් සෑදූ උපලක්ෂණය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Composite attribute – Attribute made of smaller parts such as an address.සංයුක්ත උපලක්ෂණය – ලිපිනය වැනි කුඩා කොටස්වලින් සෑදූ උපලක්ෂණය.

17Which term means: “Attribute that can hold several values such as phone numbers”?“දුරකථන අංක වැනි අගයන් කිහිපයක් ගත හැකි උපලක්ෂණය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Multi-valued attribute – Attribute that can hold several values such as phone numbers.බහු අගය උපලක්ෂණය – දුරකථන අංක වැනි අගයන් කිහිපයක් ගත හැකි උපලක්ෂණය.

18Which term means: “Attribute calculated from others such as age”?“වයස වැනි අනෙක් ඒවායින් ගණනය කරන උපලක්ෂණය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Derived attribute – Attribute calculated from others such as age.ව්‍යුත්පන්න උපලක්ෂණය – වයස වැනි අනෙක් ඒවායින් ගණනය කරන උපලක්ෂණය.

19Which term means: “ER diagram extended with supertypes and subtypes”?“supertypes සහ subtypes එක් කළ ER රූපය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

EER diagram – ER diagram extended with supertypes and subtypes.EER රූප සටහන – supertypes සහ subtypes එක් කළ ER රූපය.

20Which term means: “Dividing a supertype into more specific subtypes”?“supertype එකක් වඩා නිශ්චිත subtypes ලෙස බෙදීම” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Specialisation – Dividing a supertype into more specific subtypes.විශේෂීකරණය – supertype එකක් වඩා නිශ්චිත subtypes ලෙස බෙදීම.

MCQ answer keyMCQ පිළිතුරු

  1. C – Rectangle.සෘජුකෝණාස්‍රය.
  2. A – Diamond.දියමන්තිය.
  3. E – Identifier.හඳුනාගැනීම.
  4. B – One to many.එකට බොහෝ.
  5. C – Many to many.බොහෝ ට බොහෝ.
  6. D – Derived.ව්‍යුත්පන්න.
  7. D – Composite.සංයුක්ත.
  8. B – EER.EER.
  9. E – Conceptual schema – High-level description of data needs without implementation detail.සංකල්පීය ක්‍රමානුරූපය – ක්‍රියාත්මක විස්තර නැති ඉහළ මට්ටමේ දත්ත අවශ්‍යතා විස්තරය.
  10. A – ER diagram – Diagram of entities, attributes and relationships.ER රූප සටහන – ආයතන, උපලක්ෂණ සහ සම්බන්ධතා රූපය.
  11. B – Entity – A real-world thing about which data is stored.ආයතනය – දත්ත ගබඩා කරන සැබෑ ලෝක දෙයක්.
  12. C – Attribute – A property that describes an entity.උපලක්ෂණය – ආයතනයක් විස්තර කරන ගුණයක්.
  13. E – Entity identifier – Attribute whose value is unique for each entity.ආයතන හඳුනාගැනීම – එක් එක් ආයතනයට අනන්‍ය අගයක් ඇති උපලක්ෂණය.
  14. A – Relationship – An association between two or more entities.සම්බන්ධතාව – ආයතන දෙකක් හෝ වැඩි ගණනක් අතර සම්බන්ධය.
  15. D – Cardinality – How many instances of one entity relate to another.ගණනීයතාව – එක් ආයතනයක කොපමණ නිදසුන් අනෙකට සම්බන්ධද යන්න.
  16. D – Composite attribute – Attribute made of smaller parts such as an address.සංයුක්ත උපලක්ෂණය – ලිපිනය වැනි කුඩා කොටස්වලින් සෑදූ උපලක්ෂණය.
  17. E – Multi-valued attribute – Attribute that can hold several values such as phone numbers.බහු අගය උපලක්ෂණය – දුරකථන අංක වැනි අගයන් කිහිපයක් ගත හැකි උපලක්ෂණය.
  18. B – Derived attribute – Attribute calculated from others such as age.ව්‍යුත්පන්න උපලක්ෂණය – වයස වැනි අනෙක් ඒවායින් ගණනය කරන උපලක්ෂණය.
  19. C – EER diagram – ER diagram extended with supertypes and subtypes.EER රූප සටහන – supertypes සහ subtypes එක් කළ ER රූපය.
  20. A – Specialisation – Dividing a supertype into more specific subtypes.විශේෂීකරණය – supertype එකක් වඩා නිශ්චිත subtypes ලෙස බෙදීම.

Structured Questionsව්‍යුහගත ප්‍රශ්න

1Name and draw the symbols of an ER diagram.ER සංකේත. (4 marksලකුණු 4)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Rectangle entity; ellipse attribute; underline identifier; diamond relationship.සෘජුකෝණාස්‍රය; ඉලිප්සය; යටි ඉරි; දියමන්තිය.

2Explain 1:1, 1:N and M:N with school examples.ගණනීයතා වර්ග. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
1:1 principal–school; 1:N class–students; M:N students–subjects.1:1; 1:N; M:N.

3Draw an ER diagram for the library scenario.පුස්තකාල ER. (4 marksලකුණු 4)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Member, Book, Publisher; borrows M:N with DateBorrowed; publishes 1:N; identifiers.ආයතන; M:N; 1:N; හඳුනාගැනීම්.

4Describe composite, multi-valued and derived attributes.උපලක්ෂණ වර්ග. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Composite parts; multi-valued many values; derived calculated.සංයුක්ත; බහු; ව්‍යුත්පන්න.

5Explain specialisation in an EER diagram.EER විශේෂීකරණය. (4 marksලකුණු 4)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Supertype Person; subtypes Student/Teacher; inherit attributes; disjoint or overlapping.supertype; subtypes; උරුමය.

🎮 Game🎮 ක්‍රීඩා

Pick a game. Each one uses words from this lesson.ක්‍රීඩාවක් තෝරන්න. හැම එකක්ම මේ පාඩමේ වචන පාවිච්චි කරනවා.

Summary & Downloadsසාරාංශය සහ බාගත කිරීම්

Key pointsප්‍රධාන කරුණු

  • ER diagrams model the conceptual schema.ER රූප සංකල්පීය ක්‍රමානුරූපය ආකෘතිගත කරයි.
  • Rectangle = entity, ellipse = attribute, diamond = relationship.සෘජුකෝණාස්‍රය = ආයතනය, ඉලිප්සය = උපලක්ෂණය, දියමන්තිය = සම්බන්ධතාව.
  • Identifiers are underlined.හඳුනාගැනීම් යටි ඉරි ඇඳේ.
  • Cardinality is 1:1, 1:N or M:N.ගණනීයතාව 1:1, 1:N හෝ M:N.
  • EER adds supertypes and subtypes.EER supertypes සහ subtypes එක් කරයි.

Downloadsබාගත කිරීම්

Full Lesson 8 PDFසම්පූර්ණ පාඩම 8 PDF: English · සිංහල

Next noteඊළඟ සටහන 8.5 →

© 2026 schoolict.net (Ruwan Mangala Suraweera). All rights reserved.සියලු හිමිකම් ඇවිරිණි.