DBMS -> unit 3 -> ER MODEL

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:58 AM on 9/13/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

ER model tells about 3 things-? what are they

entity, attribute and relationshiop
• Entity: An object that is stored as data. E.g: Student, Course, or Company

.• Attribute: Properties that describe an entity. E.g: StudentID, CourseName, orEmployeeEmail

.• Relationship: A connection between entities. E.g: Student enrolls in a Course.

2
New cards

what are the types of entities, attributes and relationshiops?( hint → diagram)

knowt flashcard image
3
New cards

what are the symbols used in an ER diagram??

knowt flashcard image
4
New cards

what are the types of entitites

strong entity and weak entity

5
New cards

what’s a strong entity

A strong entity is one which has a key attributes that can uniquely identify each instance of that entity. It does not depend on other entities for it’s identification. represented by a rectangle in the ER diagram

6
New cards

what is a weak entity? what is identifying relationship? give example

it cannot be identified by it’s attributes alone, it depends on a strong entity to be defined.

represented by double rectangle

participation of weak entities is always total

relationship between weak entity type and it’s identifying strong entity type is called identifying relationship, represented by a double diamond

<p>it cannot be identified by it’s attributes alone, it depends on a strong entity to be defined. <br><br>represented by double rectangle<br><br>participation of weak entities is always total<br><br>relationship between weak entity  type and it’s identifying strong entity type is called identifying relationship, represented by a double diamond </p>
7
New cards

what is entity type?

A class of entities. ex→ student, employee ( generally the table name)

8
New cards

what is attribute? what are the 4 types of attributes? what are their symbols

features of an entity are called it’s attributes
types→

  1. Key attribute → an attribute that uniquely identifies an entity(oval with attribute’s named un`derlined)

  2. composite attribute → an attribute that is composed of other attributes . ex - address composed of house no. , street no, city, state country - (oval connected to other ovals)

  3. multi valued attribute → an attribute that may consist of more than one value for a given entity, (ex→ phone no of student) - (double oval)

  4. derived attribute → an attribute that can be calculated/derived from another attribute, (ex→ age can be calculated from DOB) - (dashed oval)


9
New cards

what is a relationship, relationship type, relationship set?

relationship type→ association between two entities (student “enrolled” in” course)
relationship set → collection of all relationshps of the same type( all “enrollments” in the course")

10
New cards

what is degree of a relationship?

what are the types

number of entity sets participating in a relationship set.
1. unary/recursive relationship- > one person is married to one person

  1. Binary relationship → student enrolled in course

  2. ternary relationship → student enrolled in course taught by instructor

    1. N-ary relationshiop → n number of entities


<p>number of entity sets  participating in a relationship set.<br>    1. unary/recursive relationship- &gt; one person is married to one person</p><ol start="2"><li><p>Binary relationship → student enrolled in course</p></li><li><p>ternary relationship → student enrolled in course taught by instructor</p><ol><li><p>N-ary relationshiop → n number of entities</p></li></ol></li></ol><p></p>
11
New cards

what is cardinality? what are it’s types?

number of times an entity of an entity set participates in a relationship set.

  1. one to one → each entity in the entity set can participate only once, one person issued one passport

  2. one to many → one teacher teacher many courses

  3. many to one → one surgeon can do many surgeries, but one surgery can be done by only one surgeon

  4. many to many → one programmer can contribute to multiple programs, one program can be written by multiple users


12
New cards

what are the participation constraints ?

total participation → each entity in the entitiy set must participate in the relationship, shown by double lines

partial participation → it is not necessary for an entity in the entity set to participate in the relationship

<p>total participation → each entity in the entitiy set must participate in the relationship, shown by double lines</p><p>partial participation → it is not necessary for an entity in the entity set to participate in the relationship </p>
13
New cards

make a diagram of entity set student and courses, and relationship set “enrolled”, total participation constraint on student entity set, partial participation constraint on course set

knowt flashcard image
14
New cards

write steps of making an ER diagram

knowt flashcard image
15
New cards

what is enhanced/extended entity model? what are the 3 concepts it includes?

EER is an advanced form of ER model that includes the following concepts →
1. specialization

  1. generalization

  2. aggregation


16
New cards

what is specialization? show diagramatic representation

top down approach


high level entity is divided into lower-level entities based on certain characterisitcs


higher level entity is aka superclass

lower level entities are aka subclass

IS-A relationship is present between super class and sub class

<p>top down approach</p><p></p><p>high level entity is divided into lower-level entities based on certain characterisitcs</p><p></p><p>higher level entity is aka superclass</p><p>lower level entities are aka subclass</p><p>IS-A relationship is present between super class and sub class</p>
17
New cards

what is generalization? show diagrammatic representation

bottom up approach in which multiple lower level entities with common characteristics are group into one higher level entitiy


higher level entity is aka superclass

lower level entities are aka subclass


IS-A relationship is present between super class and sub class



<p>bottom up approach in which multiple lower level entities with common characteristics are group into one higher level entitiy</p><p></p><p>higher level entity is aka superclass</p><p>lower level entities are aka subclass</p><p></p><p>IS-A relationship is present between super class and sub class</p><p></p><p></p>
18
New cards

what is disjoint and overlapping in this context→


disjoint → a higher level entity can belong to only one lower level entity

overlapping → a higher level entity can belong to multiple higher level entity

19
New cards

what is total and partial generalization/specialization

total → each higher level entity must belong to a lower level entity

partial → eveySS higher level entity need not belong to a lower level entity

<p>total → each higher level entity must belong to a lower level entity</p><p>partial → eveySS higher level entity need not belong to a lower level entity</p>
20
New cards

what is aggregation? what is the digrammatic representation


type of abstraction in which a relationship between entities is treated as a higher level entity,

<p></p><p>type of abstraction in which a relationship between entities is treated as a higher level entity, </p>