SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Free Ebooks Download
Mba Ebooks
By Edhole
Mba ebooks
Free ebooks download
http://ebooks.edhole.com
Entity-Relationship Data
Model
CS 157A
Professor Sin-Min Lee
Student: Yen-Chu Pan
http://ebooks.edhole.com
Elements of E-R Model
 In the E/R model, the structure of data is
represented graphically, as an “entity-
relationship diagram,” using three Principal
element types:
 Entity Sets.
 An entity is an abstract object of some sort, and a
collection of similar entities forms an entity set.
 Attributes
 The properties of the entities in the set.
 Relationship
 The connections among two or more entity Sets
http://ebooks.edhole.com
Example of Elements of E-R
Model
 Entity Sets
 Departments
 Professors
 Students
 Administrators
 Attributes
 Name of Departments, Phone No., Address...
 Name, SSN, Address of Professors...
 Relationship
 Students and Professors are under a certain
department
 Admin manage the campus/ departments
http://ebooks.edhole.com
Example of the 3 elements in
E/R Diagram
http://ebooks.edhole.com
Classification of Constraints
1. Keys
2. Single-value constraints
3. Multi-valued constraints
4. Mapping Cardinalities and
Participation Constraints
http://ebooks.edhole.com
Key in the E/R Model
 Superkey is a set of one or more attributes that, taken
collectively, for us to identify uniquely an item in the entity set.
For example, customer-id is a superkey.
 Candidate key is a minimal superkey. For example,
customer-name and customer-street is sufficient to distinguish
among members of the customer entity set. Then {customer-
name, customer-street } is a candidate key.
 Primary key denotes a candidate key that is chosen by the
database designer as the principal means of identifying items
within an entity set. the primary key should be chosen such
that its attributes are never, or very rarely, changed. For
example, Social-security numbers are guaranteed to never
changed.
http://ebooks.edhole.com
Single/Multi-valued attributes
 Single-valued attributes are attributes that
only have a single value for a particular
entity.
 Multi-valued attributes refers to items that
are not singled-value and Null valued. For
example, consider an employee entity set
with the attribute phone-number. An
employee may have zero, one, or several
phone numbers; different employee may
have different numbers of phones.
http://ebooks.edhole.com
http://ebooks.edhole.com
Mapping Cardinalities or
Cardinality ratios
 Express the number of items to which another item
can be associated via a relationship set
 Are most useful in describing binary relationship
sets. For a binary relationship set R between entity
sets A and B, the mapping cardinality must be one
of the following:
 One to One
 One to Many
 Many to One
 Many to Many
http://ebooks.edhole.com
Participation Constraints
 The participation of an entity set E in a
relationship set R is said to be total, if
every item in E participates in at least
one relationship in R. If only some
items in E participate in relationship R,
the participation of entity set E in
relationship R is said to be partial.
http://ebooks.edhole.com
Weak Entity Sets
 There is an occasional condition in
which an entity set’s key is composed
of attributes some or all of which
belong to another entity set. Such an
entity set is called a weak entity set.
http://ebooks.edhole.com
Discriminator
 The discriminator of a weak entity set is a
set of attributes that allows this distinction to
be made. For example, the discriminator of
a weak entity set payment is the attribute
payment-number, since, for each loan a
payment number uniquely identifies one
single payment for that loan. The
discriminator of a weak entity set is also
called the partial key of the entity set.
http://ebooks.edhole.com
Requirements for Weak Entity
Sets
 We cannot obtain key attributes for a weak
entity set indiscriminately. Rather, if E is a
weak entity set then its key consists of:
 Zero or more of its own attributes, and
 Key attributes from entity sets that are reached
by certain many-one relationship from E to other
entity sets. These many-one relationship are
called supporting relationships for E.
http://ebooks.edhole.com
Discriminator (cont.)
 Note: although each payment entity is
distinct, payments for different loans may
share the same payment-number. Thus,
payment entity set does not have a primary
key; it is a weak entity set.
 The primary key of a weak entity set is
formed by the primary key of the identifying
entity set, plus the weak entity set’s
discriminator.
http://ebooks.edhole.com
Identifying a Weak Entity Type
 A Weak entity type doesn’t have a primary key.
 If X is a weak entity type and Y is the entity type
on which X is dependent.
 We form a primary key for X by combining the
primary key of Y which one or more attributes,
called discriminator or partial key, from X.
 In an E/R Diagram, a partial key is usually dash-
underlined.
 e.g., primary key for DEPENDENT: {Employee
No., DName}.
http://ebooks.edhole.com
* Doted-line = double-line
*
http://ebooks.edhole.com
References
 Peter Chen’s website:
http://bit.csc.lsu.edu/~chen/chen.html
 Database Systems: A First Course, J.D.
Ullman & J. Widom
 http://www-
db.stanford.edu/~ullman/fcdb.html
 http://www.cs.sjsu.edu/faculty/lee/cs157/25S
p157AL4.ppt
 http://www.cs.sjsu.edu/faculty/lee/cs157/25S
p157AL5Enhanced%20ER-diagram.ppt
http://ebooks.edhole.com
Free Ebooks Download
Mba Ebooks
By Edhole
Mba ebooks
Free ebooks download
http://ebooks.edhole.com

Weitere ähnliche Inhalte

Andere mochten auch

Cuadro de expo, transito, etc
Cuadro de expo, transito, etcCuadro de expo, transito, etc
Cuadro de expo, transito, etcFELIPE GUTIERREZ
 
Ch01a
Ch01aCh01a
Ch01apdd3d
 
Menorca, Vive el Mediterráneo
Menorca, Vive el MediterráneoMenorca, Vive el Mediterráneo
Menorca, Vive el Mediterráneoatb20
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in indiaEdhole.com
 
Theory of Computation - Lecture 3
Theory of Computation - Lecture 3Theory of Computation - Lecture 3
Theory of Computation - Lecture 3Dr. Maamoun Ahmed
 

Andere mochten auch (9)

Eltp presentation (2)
Eltp presentation (2)Eltp presentation (2)
Eltp presentation (2)
 
Cuadro de expo, transito, etc
Cuadro de expo, transito, etcCuadro de expo, transito, etc
Cuadro de expo, transito, etc
 
Game Sense Approach
Game Sense ApproachGame Sense Approach
Game Sense Approach
 
Ch01a
Ch01aCh01a
Ch01a
 
Menorca, Vive el Mediterráneo
Menorca, Vive el MediterráneoMenorca, Vive el Mediterráneo
Menorca, Vive el Mediterráneo
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in india
 
Articolo 12
Articolo 12Articolo 12
Articolo 12
 
Kisho kurokawa lozano+vega
Kisho kurokawa lozano+vegaKisho kurokawa lozano+vega
Kisho kurokawa lozano+vega
 
Theory of Computation - Lecture 3
Theory of Computation - Lecture 3Theory of Computation - Lecture 3
Theory of Computation - Lecture 3
 

Mehr von Edhole.com

Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbaiEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 

Mehr von Edhole.com (20)

Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbai
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 

Kürzlich hochgeladen

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 

Kürzlich hochgeladen (20)

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 

Free Ebooks Download ! Edhole

  • 1. Free Ebooks Download Mba Ebooks By Edhole Mba ebooks Free ebooks download http://ebooks.edhole.com
  • 2. Entity-Relationship Data Model CS 157A Professor Sin-Min Lee Student: Yen-Chu Pan http://ebooks.edhole.com
  • 3. Elements of E-R Model  In the E/R model, the structure of data is represented graphically, as an “entity- relationship diagram,” using three Principal element types:  Entity Sets.  An entity is an abstract object of some sort, and a collection of similar entities forms an entity set.  Attributes  The properties of the entities in the set.  Relationship  The connections among two or more entity Sets http://ebooks.edhole.com
  • 4. Example of Elements of E-R Model  Entity Sets  Departments  Professors  Students  Administrators  Attributes  Name of Departments, Phone No., Address...  Name, SSN, Address of Professors...  Relationship  Students and Professors are under a certain department  Admin manage the campus/ departments http://ebooks.edhole.com
  • 5. Example of the 3 elements in E/R Diagram http://ebooks.edhole.com
  • 6. Classification of Constraints 1. Keys 2. Single-value constraints 3. Multi-valued constraints 4. Mapping Cardinalities and Participation Constraints http://ebooks.edhole.com
  • 7. Key in the E/R Model  Superkey is a set of one or more attributes that, taken collectively, for us to identify uniquely an item in the entity set. For example, customer-id is a superkey.  Candidate key is a minimal superkey. For example, customer-name and customer-street is sufficient to distinguish among members of the customer entity set. Then {customer- name, customer-street } is a candidate key.  Primary key denotes a candidate key that is chosen by the database designer as the principal means of identifying items within an entity set. the primary key should be chosen such that its attributes are never, or very rarely, changed. For example, Social-security numbers are guaranteed to never changed. http://ebooks.edhole.com
  • 8. Single/Multi-valued attributes  Single-valued attributes are attributes that only have a single value for a particular entity.  Multi-valued attributes refers to items that are not singled-value and Null valued. For example, consider an employee entity set with the attribute phone-number. An employee may have zero, one, or several phone numbers; different employee may have different numbers of phones. http://ebooks.edhole.com
  • 10. Mapping Cardinalities or Cardinality ratios  Express the number of items to which another item can be associated via a relationship set  Are most useful in describing binary relationship sets. For a binary relationship set R between entity sets A and B, the mapping cardinality must be one of the following:  One to One  One to Many  Many to One  Many to Many http://ebooks.edhole.com
  • 11. Participation Constraints  The participation of an entity set E in a relationship set R is said to be total, if every item in E participates in at least one relationship in R. If only some items in E participate in relationship R, the participation of entity set E in relationship R is said to be partial. http://ebooks.edhole.com
  • 12. Weak Entity Sets  There is an occasional condition in which an entity set’s key is composed of attributes some or all of which belong to another entity set. Such an entity set is called a weak entity set. http://ebooks.edhole.com
  • 13. Discriminator  The discriminator of a weak entity set is a set of attributes that allows this distinction to be made. For example, the discriminator of a weak entity set payment is the attribute payment-number, since, for each loan a payment number uniquely identifies one single payment for that loan. The discriminator of a weak entity set is also called the partial key of the entity set. http://ebooks.edhole.com
  • 14. Requirements for Weak Entity Sets  We cannot obtain key attributes for a weak entity set indiscriminately. Rather, if E is a weak entity set then its key consists of:  Zero or more of its own attributes, and  Key attributes from entity sets that are reached by certain many-one relationship from E to other entity sets. These many-one relationship are called supporting relationships for E. http://ebooks.edhole.com
  • 15. Discriminator (cont.)  Note: although each payment entity is distinct, payments for different loans may share the same payment-number. Thus, payment entity set does not have a primary key; it is a weak entity set.  The primary key of a weak entity set is formed by the primary key of the identifying entity set, plus the weak entity set’s discriminator. http://ebooks.edhole.com
  • 16. Identifying a Weak Entity Type  A Weak entity type doesn’t have a primary key.  If X is a weak entity type and Y is the entity type on which X is dependent.  We form a primary key for X by combining the primary key of Y which one or more attributes, called discriminator or partial key, from X.  In an E/R Diagram, a partial key is usually dash- underlined.  e.g., primary key for DEPENDENT: {Employee No., DName}. http://ebooks.edhole.com
  • 17. * Doted-line = double-line * http://ebooks.edhole.com
  • 18. References  Peter Chen’s website: http://bit.csc.lsu.edu/~chen/chen.html  Database Systems: A First Course, J.D. Ullman & J. Widom  http://www- db.stanford.edu/~ullman/fcdb.html  http://www.cs.sjsu.edu/faculty/lee/cs157/25S p157AL4.ppt  http://www.cs.sjsu.edu/faculty/lee/cs157/25S p157AL5Enhanced%20ER-diagram.ppt http://ebooks.edhole.com
  • 19. Free Ebooks Download Mba Ebooks By Edhole Mba ebooks Free ebooks download http://ebooks.edhole.com