Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

What is an entity supertype and why is it used

02/12/2021 Client: muhammad11 Deadline: 2 Day

R_Ch06- Data Modelling Advanced Concepts.ppt
Database Principles: Fundamentals of Design, Implementations and Management

Lecture 6 - CHAPTER 6 : Data Modelling

Advanced Concepts

*

Objectives

In this chapter, you will learn:
About the extended entity relationship (EER) model’s main constructs
How entity clusters are used to represent multiple entities and relationships
The characteristics of good primary keys and how to select them
How to use flexible solutions for special data modeling cases
What issues to check for when developing data models based on EER diagrams
*

The Extended Entity Relationship Model

Result of adding more semantic constructs to original entity relationship (ER) model
Diagram using this model is called an EER diagram (EERD)
Entity Supertypes and Subtypes

Entity supertype
Generic entity type that is related to one or more entity subtypes
Contains common characteristics
Entity subtypes
Contains unique characteristics of each entity subtype
*

*

Entity Supertypes and Subtypes (cont..)

*

Specialization Hierarchy

Depicts an arrangement of higher-level entity supertypes and lower-level entity subtypes
Relationships are described in terms of “IS-A” relationships
Subtype exists only within context of supertype
Every subtype has only one supertype to which it is directly related
Can have many levels of supertype/subtype relationships
Figure 6.2 in your book as well

*

Specialization Hierarchy (cont..)

Figure 6.2 in your book as well

Specialization Hierarchy (cont..)

Support attribute inheritance
Define special supertype attribute known as subtype discriminator
Define disjoint/overlapping constraints and complete/partial constraints
*

*

Inheritance

Enables entity subtype to inherit attributes and relationships of supertype
All entity subtypes inherit their primary key attribute from their supertype
At implementation level, supertype and its subtype(s) maintain a 1:1 relationship
Entity subtypes inherit all relationships in which supertype entity participates
Lower-level subtypes inherit all attributes and relationships from all upper level-supertypes
Inheritance (cont..)

*

Inheritance (cont..)

*

*

Natural Keys and Primary Keys

Natural key is a real-world identifier used to uniquely identify real-world objects
Familiar to end users and forms part of their day-to-day business vocabulary
Generally data modeler uses natural identifier as primary key of entity being modeled
May instead use composite primary key or surrogate key
*

Primary Key Guidelines

A Primary key is an attribute or combination of attributes that uniquely identifies entity instances in an entity set
Could also be combination of attributes
Main function is to uniquely identify an entity instance or row within a table
Guarantee entity integrity, not to “describe” the entity
Primary keys and foreign keys implement relationships among entities
Behind the scenes, hidden from user
Primary Key Guidelines (cont..)

*

Primary Key Guidelines (cont..)

*

*

Entity Integrity:
Selecting Primary Keys

Primary key most important characteristic of an entity
Single attribute or some combination of attributes
Primary key’s function is to guarantee entity integrity
Primary keys and foreign keys work together to implement relationships
Properly selecting primary key has direct bearing on efficiency and effectiveness
*

When to Use Composite Primary Keys

Composite primary keys are useful in two cases:
As identifiers of composite entities
Where each primary key combination allowed once in M:N relationship
As identifiers of weak entities
Where weak entity has a strong identifying relationship with the parent entity
Automatically provides benefit of ensuring that there cannot be duplicate values
Figure 6.7 in your book

*

When to Use Composite Primary Keys (cont..)

Figure 6.7 in your book

*

When to Use Composite Primary Keys (cont..)

When used as identifiers of weak entities normally used to represent:
Real-world object that is existent-dependent on another real-world object
Real-world object that is represented in data model as two separate entities in strong identifying relationship
Dependent entity exists only when it is related to parent entity
*

When To Use Surrogate Primary Keys

Especially helpful when there is:
No natural key
Selected candidate key has embedded semantic contents
Selected candidate key is too long or cumbersome
If you use surrogate key
Ensure that candidate key of entity in question performs properly
Use “unique index” and “not null” constraints
When To Use Surrogate Primary Keys (cont..)

*

*

Design Cases:
Learning Flexible Database Design

Data modeling and design requires skills acquired through experience
Experience acquired through practice
Four special design cases that highlight:
Importance of flexible design
Proper identification of primary keys
Placement of foreign keys
*

Design Case #1: Implementing 1:1 Relationships

Foreign keys work with primary keys to properly implement relationships in relational model
Put primary key of the “one” side (parent entity) on the “many” side (dependent entity) as foreign key
Primary key: parent entity
Foreign key: dependent entity
*

Design Case #1: Implementing 1:1 Relationships (cont..)

In 1:1 relationship two options:
Place a foreign key in both entities (not recommended)
Place a foreign key in one of the entities
Primary key of one of the two entities appears as foreign key of other
Design Case #1: Implementing
1:1 Relationships (continued)

*

Figure 6.9 in your book

*

Design Case #1: Implementing
1:1 Relationships (cont..)

Figure 6.9 in your book

*

Design Case #2: Maintaining History of Time-Variant Data

Normally, existing attribute values replaced with new value without regard to previous value
Time-variant data:
Values change over time
Must keep a history of data changes
Keeping history of time-variant data equivalent to having a multivalued attribute in your entity
Must create new entity in 1:M relationships with original entity
New entity contains new value, date of change
Figure 6.10 in your book

*

Design Case #2: Maintaining
History of Time-Variant Data (cont..)

Figure 6.10 in your book

Figure 6.11 in your book

*

Design Case #2: Maintaining
History of Time-Variant Data (cont..)

Figure 6.11 in your book

*

Design Case #3: Fan Traps

Design trap occurs when relationship is improperly or incompletely identified
Represented in a way not consistent with the real world
Most common design trap is known as fan trap
Fan trap occurs when one entity is in two 1:M relationships to other entities
Produces an association among other entities not expressed in the model
Figure 6.12 in your book

*

Design Case #3: Fan Traps (cont..)

Figure 6.12 in your book

*

Design Case #4:
Redundant Relationships

Redundancy is seldom a good thing in database environment
Occur when there are multiple relationship paths between related entities
Main concern is that redundant relationships remain consistent across model
Some designs use redundant relationships to simplify the design
Figure 6.13 in your book

*

Design Case #4:
Redundant Relationships (cont..)

Figure 6.13 in your book

Figure 6.14 in your book.

*

Design Case #4:
Redundant Relationships (cont..)

Figure 6.14 in your book.

*

Data Modeling Checklist

Data modeling translates specific real-world environment into data model
Represents real-world data, users, processes, interactions
EERM (Extented Entity Relationship Model) enables the designer to add more semantic content to the model
Data modeling checklist helps ensure data modeling tasks successfully performed
Based on concepts and tools learned since Chapter 3
Data Modeling Checklist

*

Data Modeling Checklist (cont..)

*

*

Summary

Extended entity relationship (EER) model adds semantics to ER model
Adds semantics via entity supertypes, subtypes, and clusters
Entity supertype is a generic entity type related to one or more entity subtypes
Specialization hierarchy
Depicts arrangement and relationships between entity supertypes and entity subtypes
Inheritance means an entity subtype inherits attributes and relationships of supertype
*

Summary (cont..)

Subtype discriminator determines which entity subtype the supertype occurrence is related to:
Partial or total completeness
Specialization vs. generalization
Entity cluster is “virtual” entity type
Represents multiple entities and relationships in ERD
Formed by combining multiple interrelated entities and relationships into a single object
*

Summary (cont..)

Natural keys are identifiers that exist in real world
Sometimes make good primary keys
Characteristics of primary keys:
Must have unique values
Should be nonintelligent
Must not change over time
Preferably numeric or composed of single attribute
*

Summary (cont..)

Composite keys are useful to represent
M:N relationships
Weak (strong-identifying) entities
Surrogate primary keys are useful when no suitable natural key makes primary key
In a 1:1 relationship, place the PK of mandatory entity
As FK in optional entity
As FK in entity that causes least number of nulls
As FK where the role is played
*

Summary (cont..)

Time-variant data
Data whose values change over time
Requires keeping a history of changes
To maintain history of time-variant data:
Create entity containing the new value, date of change, other time-relevant data
Entity maintains 1:M relationship with entity for which history maintained
*

Summary (cont..)

Fan trap occurs when you have:
One entity in two 1:M relationships to other entities and there is an
Association among the other entities not expressed in model
Redundant relationships occur when multiple relationship paths between related entities
Main concern is that they remain consistent across the model
Data modeling checklist provides way to check that the ERD meets minimum requirements
ADDITIONAL SLIDES

Please find additional slides to have a look at..

*

*

Subtype Discriminator

Attribute in supertype entity
Determines to which entity subtype each supertype occurrence is related
Default comparison condition for subtype discriminator attribute is equality comparison
Subtype discriminator may be based on other comparison condition
*

Disjoint and Overlapping Constraints

Disjoint subtypes
Also known as non-overlapping subtypes
Subtypes that contain unique subset of supertype entity set
Overlapping subtypes
Subtypes that contain nonunique subsets of supertype entity set
Figure 6.4 Same as in your book

*

Disjoint and Overlapping Constraints (cont..)

Figure 6.4 Same as in your book

Disjoint and Overlapping Constraints (cont..)

*

*

Completeness Constraint

Specifies whether entity supertype occurrence must be a member of at least one subtype
Can be partial or total
Partial completeness
Symbolized by a circle over a single line
Some supertype occurrences that are not members of any subtype
Total completeness
Symbolized by a circle over a double line
Every supertype occurrence must be member of at least one subtype
Table 6.2 same as in your book..

*

Completeness Constraint (cont..)

Table 6.2 same as in your book..

*

Specialization and Generalization

Specialization
Identifies more specific entity subtypes from higher-level entity supertype
Top-down process of identifying lower-level, more specific entity subtypes from higher-level entity supertype
Based on grouping unique characteristics and relationships of the subtypes
*

Specialization and Generalization (cont..)

Generalization
Identifies more generic entity supertype from lower-level entity subtypes
Bottom-up process of identifying higher-level, more generic entity supertype from lower-level entity subtypes
Based on grouping common characteristics and relationships of the subtypes
Composition and Aggregation

Aggregation
a larger entity can be composed of smaller entities.
Composition
special case of aggregation
when the parent entity instance is deleted, all child entity instances are automatically deleted.
*

Composition and Aggregation (cont..)

*

Using Aggregation and Composition

An aggregation construct is used when an entity is composed of (or is formed by) a collection of other entities, but the entities are independent of each other.
the relationship can be classified as a ‘has_a’ relationship type.
A composition construct is used when two entities are associated in an aggregation association with a strong identifying relationship.
deleting the parent deletes the children instances.
*

Aggregation and Composition

*

*

Entity Clustering

A “Virtual” entity type is used to represent multiple entities and relationships in ERD
Considered “virtual” or “abstract” because it is not actually an entity in final ERD
Temporary entity used to represent multiple entities and relationships
Eliminate undesirable consequences
Avoid display of attributes when entity clusters are used
Figure 6.6 in your book

*

Entity Clustering (cont..)

Figure 6.6 in your book

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Helping Hand
Financial Analyst
Assignment Helper
Exam Attempter
Financial Assignments
Premium Solutions
Writer Writer Name Offer Chat
Helping Hand

ONLINE

Helping Hand

I have done dissertations, thesis, reports related to these topics, and I cover all the CHAPTERS accordingly and provide proper updates on the project.

$32 Chat With Writer
Financial Analyst

ONLINE

Financial Analyst

I have worked on wide variety of research papers including; Analytical research paper, Argumentative research paper, Interpretative research, experimental research etc.

$21 Chat With Writer
Assignment Helper

ONLINE

Assignment Helper

I have done dissertations, thesis, reports related to these topics, and I cover all the CHAPTERS accordingly and provide proper updates on the project.

$25 Chat With Writer
Exam Attempter

ONLINE

Exam Attempter

I have assisted scholars, business persons, startups, entrepreneurs, marketers, managers etc in their, pitches, presentations, market research, business plans etc.

$26 Chat With Writer
Financial Assignments

ONLINE

Financial Assignments

I am an experienced researcher here with master education. After reading your posting, I feel, you need an expert research writer to complete your project.Thank You

$34 Chat With Writer
Premium Solutions

ONLINE

Premium Solutions

I will be delighted to work on your project. As an experienced writer, I can provide you top quality, well researched, concise and error-free work within your provided deadline at very reasonable prices.

$31 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Coalition of essential schools - Seated in & outs - Film segmentation example - Re2 lore explorer checklist - There will come soft rains discussion questions - Wjec a level biology - Cadence push ups navy - Tasso elba milled slim billfold wallet - Calculus a complete course answers - Csec english sba plan of investigation - When was the fitbit invented - 12 am in 24 hour time - VOSLOORUS ▼[ ••• +2761O482071•••▼▼]@)) EARLY TERMINATION- PILLS FOR SALE IN VOSLOORUS KAGISO, FAERIE GLENN - Only outline of term paper. term paper topic is "Reform of American Police" - William d moseley hotel tampawilliam d moseley hotel tampa - What is mindtap learning path most similar to - Acqua panna ph level - Benchmark evidence based practice project paper on diabetes - How do the perspectives differ from the ethical theories - Ethical scenario individual response 1 hour only - Vosburgh electronics corporation balance sheet - Clothes r us case study - Elizabeth macarthur high school reviews - Biome activity high school - Fdr four freedoms speech text - Titration of kmno4 with feso4 - Methods for discussing ethical disagreements productively - Robey warshaw llp asset management arm - Cabela's women's trans alaska elite goose down parka - Discussion: Discuss and Debate - Management of health and safety at work regulations 1999 - Septic Shock - Competitive advantage through information technology - Authority to sell property sample - Topographic map symbols and colors - Fair and lovely advertisement in english - Usyd student centre email - When did bank of america acquired merrill lynch - Difference between formal and informal proposals - 2 w in dbm - Advanced higher modern studies - Hot assets unrealized receivables - Is OSHA Incident rate a true reflection of workplace injuries - Bachelor of biomedical science uts atar - The thinker's guide to the art of socratic questioning pdf - Book-Tax Differences - Examples of addressing selection criteria - Sealed with a kiss guitar tab - Airport oaks auckland postcode - Rockhampton clay target club - Module 09 Post-Lab Quiz - Cch osha standards for general industry - Atlanta child murders new evidence - Leader Traits and attributes - Fixed my milestone 2 - Explain the various factors that affect the safety of food products in the new technologies that affect food supply. - Gate control theory nursing - The black balloon charlie - Morality reflection paper - Infusion drops per minute formula - Digital norton ebook sign in - Case study online education peter drucker - Jp hyperdome - Riba product selector 2016 - Nursing Research Methods - Command cruise control ap60b - Gta 5 motion sensor function - God's mission is characterized by - The cherokee removal a brief history with documents summary - Describing dancing creative writing - Paper - Abc sells 400 shares of its $23 par common stock for $27. the entry would entail credit(s) to - Unity gain bandwidth of 741 op amp - Long term capital management case study - Excel qm in excel 2016 - Bim 360 glue clash detection - Dikw in nursing informatics - Astm grain size equation - Unit 36 business btec - How to ping in cisco packet tracer - Netsh firewall add portopening udp - Homework AA - Evaluating the Feasibility of an Innovation Opportunity - Ammonium biurate crystals dog - How many orbitals are there in the seventh shell - 3 day goat stew taiwan - Melbourne tram route map - Dirks v.sec - List the steps of the accounting cycle - UFO Sightings- building website - Validating node self description database riverbed - Game show network cox - 5.1 cell division and the cell cycle answers - Wjec a level biology past papers - Reflected best self exercise assignment and instructions to participants - Experiment 2: effect of temperature on enzyme activity - Barrier analysis template - Marketing research proposal for soft drinks - Igcse double award science syllabus - Family health assessment