SlideShare a Scribd company logo
1 of 10
ERD FOR UC Online
Requirement: Each book has an id, title, publication date,
publisher, ISBN, functional category, page count, price
(publisher), and product description
. Please make ‘id’ for ‘BookID’. All columns name in lower
case.
. Price is missing.
. Please Remove table name ‘Book’ in columns in same table.
Like BookTitle to title.
. Please edit int(100) to just int. and varchar(100) to varchar
Requirement: There are 3 categories of book: fiction, non-
fiction, and specialty
. Why all the relationships have (o) optional, a book must have
a category. (|) required in the fork?
Requirement: An author can write one or more books.
. Same issue optional? It’s one or many. (o) to (|).
Requirement: A musician can be a solo artist, part of a group, or
both
. Do we need a group entity where an artist might be in a group?
Assume if I need all artist from a same group, how can I find?
Requirement: An author can also be associated with one or more
publishers.
. Where’s the relationships between author and publisher?
Requirement: A musician/group/act can be associated with one
or more music houses
. Why optional? It says one or many.
Requirement: An author’s book can have one or more editions.
. Do we need another Book_Edition entity to maintain this
relationship?
Requirement: Many ISBNs can also be associated with a given
publisher but only one ISBN per form of medium (ie the ISBN
is the PK no matter what).
. Do we need to make isbn primary key as well? A table can
have multiple primary key.
Requirement: UCOnline needs to keep track of user ratings for
each item sold in the online store (e.g., 1-5 and 1 for ‘Dislike’,
to 5, for ‘Awesome!’).
. Book, Song, Album must be associated with Ratings?
Requirement: A particular user rates a particular item at a given
time.
. Relationship?
Requirement: A user CANNOT rate the same multiple times
unless there are multiple editions of the item. Each edition can
be rated separately.
. Relationship?
Requirement: Each user who submits a rating will be identified
by a unique id and has a name, gender, age, and location.
Nothing is anonymous.
. Need a new entity to have this feature and relationships with
customer, Book, Song, Album?
SECTION 1
Data Fundamentals Overview
Section Beginning (Dark Color Option )
1
Fundamental relationship
Relationship between two entity types
A person, place, or thing “acts” upon something to complete ”x”
(i.e. purchase a product)
Binary Relationships
Data Fundamentals Overview
Salesperson
Product
Sells
2
Represents the maximum number of entities that can be
involved in a relationship.
One-to-One Binary Relationship
One-to-Many Binary Relationship
Many-to-Many Binary Relationship
Cardinality
Data Fundamentals Overview
3
The minimum number of entity occurrences that can be involved
in a relationship.
“inner” symbol on E-R diagram (“outer” symbol is cardinality)
Modality
Data Fundamentals Overview
Everyone order has exactly ONE customer AND Every customer
has one or more ORDERS
4
Associate occurrences of an entity type with other occurrences
of the same entity type.
Unary Relationships
Data Fundamentals Overview
5
A single occurrence of one entity type can be associated with a
single occurrence of the other entity type and vice versa
1:1 Relationships
Data Fundamentals Overview
Student
Student ID #
6
Use “crow’s foot” to represent the multiple association.
“many” = the maximum number of occurrences that can be
involved, means a number that can be 1, 2, 3, ... n.
1:M Relationships
Data Fundamentals Overview
Company
Product A
Product B
Product C
7
“Many” can be either an exact number or have a known
maximum.
M:M Relationships
Data Fundamentals Overview
Musicians
Albums
Musicians
Musicians
8
Involves three different entity types
Ternary Relationships
Data Fundamentals Overview
9
Describes the relationship between two entities.
Used with many-to-many relationships.
Represented on E-R diagram as an “associative entity”
Intersection Data
Data Fundamentals Overview
10
Entities can have attributes; many-to-many relationships can
have attributes.
Many-to-many relationship may be treated similarly to entities
in an E-R diagram.
Associative Entity
Data Fundamentals
11
SECTION 2
Data Modeling Creation
Section Beginning (Dark Color Option )
12
A diagramming technique
Diagrams entities (with attributes) and the relationship between
the entities.
There are many variations of E-R diagrams in use.
The E-R Diagram
Data Fundamentals Overview
13
Entity Relationship Diagram Basics
Entity type’s attributes are shown below the separator line.
PK and boldface denote the attribute(s) that constitute the entity
type’s unique identifier
Rectangular shape
OBJECT = a type of entity
Name of entity is in caps above the separator line.
Data Fundamentals Overview
14
In an ER diagrams, common practice is to a convention that
entity type and relationship type names are uppercase letters,
attribute names have their initial letter capitalized, and
role names are lowercase letter
Data Definition & Naming Conventions
Data Fundamentals Overview
15
SECTION 3
Assignment
Section Beginning (Dark Color Option )
16
Each book has an id, title, publication date, publisher, ISBN,
functional category, page count, price (publisher), and product
description
There are 3 categories of book: fiction, non-fiction, and
specialty
There are 2 categories of music: digital and media-based
An author can write one or more books.
A musician can be a solo artist, part of a group, or both
An author can also be associated with one or more publishers.
A musician/group/act can be associated with one or more music
houses
An author’s book can have one or more editions.
A song and or album can have more than one version/edition
(i.e. EP, LP, CD, DVD etc)
A publisher can have many authors and many books.
A record company can have many artists associated and many
albums associated with it.
A record company can also be the publishing company (i.e. self-
publishing)

Many ISBNs can also be associated with a given publisher but
only one ISBN per form of medium (ie the ISBN is the PK no
matter what).
An author can write many books.
An artist can write many songs, albums etc.
UCOnline needs to keep track of user ratings for each item sold
in the online store (e.g., 1-5 and 1 for ‘Dislike’, to 5, for
‘Awesome!’).
A particular user rates a particular item at a given time.
A user CANNOT rate the same multiple times unless there are
multiple editions of the item. Each edition can be rated
separately.
Each user who submits a rating will be identified by a unique id
and has a name, gender, age, and location. Nothing is
anonymous.
There is also a social network between users. Users can send
communication requests (i.e. instant messages/emails) to other
users. Such requests can be accepted or ignored. Once accepted,
the two users are considered ‘book buddies.’ If ignored, the user
can send the request again. We want to add a store when the
requests were sent (timestamp), the result of the requests and
when the request was answered (timestamp).
Tools
Visio
Visual Paradigm Online
SQLDBM
Draw.io
ERDPlus
Lucidchart

More Related Content

Similar to ERD FOR UC OnlineRequirement Each book has an i.docx

6 b magazine conventions
6 b   magazine conventions6 b   magazine conventions
6 b magazine conventions
peterconnell
 
Dps Analysis Answers Nme
Dps Analysis Answers NmeDps Analysis Answers Nme
Dps Analysis Answers Nme
guestdc3961
 
How to Read and Understand an Expository EssayThe Initial Read.docx
How to Read and Understand an Expository EssayThe Initial Read.docxHow to Read and Understand an Expository EssayThe Initial Read.docx
How to Read and Understand an Expository EssayThe Initial Read.docx
adampcarr67227
 
Double page spread statement of intent
Double page spread statement of intentDouble page spread statement of intent
Double page spread statement of intent
lilflickmania
 
Magazine pitch and proposal overview
Magazine pitch and proposal overviewMagazine pitch and proposal overview
Magazine pitch and proposal overview
BethanyTweddell
 
CULTURAL ARTIFACT 1 Music as a Cultural Artifact Rhythm
CULTURAL ARTIFACT  1 Music as a Cultural Artifact Rhythm CULTURAL ARTIFACT  1 Music as a Cultural Artifact Rhythm
CULTURAL ARTIFACT 1 Music as a Cultural Artifact Rhythm
MargenePurnell14
 

Similar to ERD FOR UC OnlineRequirement Each book has an i.docx (20)

6 b magazine conventions
6 b   magazine conventions6 b   magazine conventions
6 b magazine conventions
 
Tek electronic music magazine
Tek electronic music magazineTek electronic music magazine
Tek electronic music magazine
 
Apa style citations revised2
Apa style citations revised2Apa style citations revised2
Apa style citations revised2
 
ERD.pptx
ERD.pptxERD.pptx
ERD.pptx
 
Dps Analysis Answers Nme
Dps Analysis Answers NmeDps Analysis Answers Nme
Dps Analysis Answers Nme
 
Relational database
Relational databaseRelational database
Relational database
 
Penpalling And Letters How To Write A Letter
Penpalling And Letters How To Write A LetterPenpalling And Letters How To Write A Letter
Penpalling And Letters How To Write A Letter
 
Shearer / Unit One Assignment / English102
Shearer / Unit One Assignment / English102Shearer / Unit One Assignment / English102
Shearer / Unit One Assignment / English102
 
How to Read and Understand an Expository EssayThe Initial Read.docx
How to Read and Understand an Expository EssayThe Initial Read.docxHow to Read and Understand an Expository EssayThe Initial Read.docx
How to Read and Understand an Expository EssayThe Initial Read.docx
 
Unit One Assignment / English102 / Shearer
Unit One Assignment / English102 / ShearerUnit One Assignment / English102 / Shearer
Unit One Assignment / English102 / Shearer
 
Media Evaluation Q1.
Media Evaluation Q1.Media Evaluation Q1.
Media Evaluation Q1.
 
Genre.pptx
Genre.pptxGenre.pptx
Genre.pptx
 
Critique Essay
Critique EssayCritique Essay
Critique Essay
 
Planning
PlanningPlanning
Planning
 
Double page spread statement of intent
Double page spread statement of intentDouble page spread statement of intent
Double page spread statement of intent
 
Magazine pitch and proposal overview
Magazine pitch and proposal overviewMagazine pitch and proposal overview
Magazine pitch and proposal overview
 
planning - media
planning - media planning - media
planning - media
 
Presentation1
Presentation1Presentation1
Presentation1
 
Fire starter
Fire starterFire starter
Fire starter
 
CULTURAL ARTIFACT 1 Music as a Cultural Artifact Rhythm
CULTURAL ARTIFACT  1 Music as a Cultural Artifact Rhythm CULTURAL ARTIFACT  1 Music as a Cultural Artifact Rhythm
CULTURAL ARTIFACT 1 Music as a Cultural Artifact Rhythm
 

More from elbanglis

Explore the Issue PapersYou will choose a topic from the Complet.docx
Explore the Issue PapersYou will choose a topic from the Complet.docxExplore the Issue PapersYou will choose a topic from the Complet.docx
Explore the Issue PapersYou will choose a topic from the Complet.docx
elbanglis
 
Experiencing Intercultural CommunicationAn Introduction6th e.docx
Experiencing Intercultural CommunicationAn Introduction6th e.docxExperiencing Intercultural CommunicationAn Introduction6th e.docx
Experiencing Intercultural CommunicationAn Introduction6th e.docx
elbanglis
 
Experimental and Quasi-Experimental DesignsChapter 5.docx
Experimental and Quasi-Experimental DesignsChapter 5.docxExperimental and Quasi-Experimental DesignsChapter 5.docx
Experimental and Quasi-Experimental DesignsChapter 5.docx
elbanglis
 
Explain how building partner capacity is the greatest challenge in.docx
Explain how building partner capacity is the greatest challenge in.docxExplain how building partner capacity is the greatest challenge in.docx
Explain how building partner capacity is the greatest challenge in.docx
elbanglis
 
Experience as a Computer ScientistFor this report, the pro.docx
Experience as a Computer ScientistFor this report, the pro.docxExperience as a Computer ScientistFor this report, the pro.docx
Experience as a Computer ScientistFor this report, the pro.docx
elbanglis
 
Expansion and Isolationism in Eurasia How did approaches t.docx
Expansion and Isolationism in Eurasia How did approaches t.docxExpansion and Isolationism in Eurasia How did approaches t.docx
Expansion and Isolationism in Eurasia How did approaches t.docx
elbanglis
 
EXPEDIA VS. PRICELINE -- WHOSE MEDIA PLAN TO BOOK Optim.docx
EXPEDIA VS. PRICELINE -- WHOSE MEDIA PLAN TO BOOK Optim.docxEXPEDIA VS. PRICELINE -- WHOSE MEDIA PLAN TO BOOK Optim.docx
EXPEDIA VS. PRICELINE -- WHOSE MEDIA PLAN TO BOOK Optim.docx
elbanglis
 
Experiments with duckweed–moth systems suggest thatglobal wa.docx
Experiments with duckweed–moth systems suggest thatglobal wa.docxExperiments with duckweed–moth systems suggest thatglobal wa.docx
Experiments with duckweed–moth systems suggest thatglobal wa.docx
elbanglis
 
EXP4304.521F19 Motivation 1 EXP4304.521F19 Motivatio.docx
EXP4304.521F19 Motivation  1  EXP4304.521F19 Motivatio.docxEXP4304.521F19 Motivation  1  EXP4304.521F19 Motivatio.docx
EXP4304.521F19 Motivation 1 EXP4304.521F19 Motivatio.docx
elbanglis
 
EXPERIMENT 1 OBSERVATION OF MITOSIS IN A PLANT CELLData Table.docx
EXPERIMENT 1 OBSERVATION OF MITOSIS IN A PLANT CELLData Table.docxEXPERIMENT 1 OBSERVATION OF MITOSIS IN A PLANT CELLData Table.docx
EXPERIMENT 1 OBSERVATION OF MITOSIS IN A PLANT CELLData Table.docx
elbanglis
 
Exercise Package 2 Systems and its properties (Tip Alwa.docx
Exercise Package 2 Systems and its properties (Tip Alwa.docxExercise Package 2 Systems and its properties (Tip Alwa.docx
Exercise Package 2 Systems and its properties (Tip Alwa.docx
elbanglis
 
Exercises for Chapter 8 Exercises III Reflective ListeningRef.docx
Exercises for Chapter 8 Exercises III Reflective ListeningRef.docxExercises for Chapter 8 Exercises III Reflective ListeningRef.docx
Exercises for Chapter 8 Exercises III Reflective ListeningRef.docx
elbanglis
 
Exercise 9-08On July 1, 2019, Sheridan Company purchased new equ.docx
Exercise 9-08On July 1, 2019, Sheridan Company purchased new equ.docxExercise 9-08On July 1, 2019, Sheridan Company purchased new equ.docx
Exercise 9-08On July 1, 2019, Sheridan Company purchased new equ.docx
elbanglis
 
Exercise 1 – Three-Phase, Variable-Frequency Induction-Motor D.docx
Exercise 1 – Three-Phase, Variable-Frequency Induction-Motor D.docxExercise 1 – Three-Phase, Variable-Frequency Induction-Motor D.docx
Exercise 1 – Three-Phase, Variable-Frequency Induction-Motor D.docx
elbanglis
 
ExemplaryVery GoodProficientOpportunity for ImprovementU.docx
ExemplaryVery GoodProficientOpportunity for ImprovementU.docxExemplaryVery GoodProficientOpportunity for ImprovementU.docx
ExemplaryVery GoodProficientOpportunity for ImprovementU.docx
elbanglis
 
Exercise Question #1 Highlight your table in Excel. Copy the ta.docx
Exercise Question #1  Highlight your table in Excel. Copy the ta.docxExercise Question #1  Highlight your table in Excel. Copy the ta.docx
Exercise Question #1 Highlight your table in Excel. Copy the ta.docx
elbanglis
 
Executive SummaryXYZ Development, LLC has requested ASU Geotechn.docx
Executive SummaryXYZ Development, LLC has requested ASU Geotechn.docxExecutive SummaryXYZ Development, LLC has requested ASU Geotechn.docx
Executive SummaryXYZ Development, LLC has requested ASU Geotechn.docx
elbanglis
 
ExemplaryProficientProgressingEmergingElement (1) Respo.docx
ExemplaryProficientProgressingEmergingElement (1) Respo.docxExemplaryProficientProgressingEmergingElement (1) Respo.docx
ExemplaryProficientProgressingEmergingElement (1) Respo.docx
elbanglis
 

More from elbanglis (20)

Explore the Issue PapersYou will choose a topic from the Complet.docx
Explore the Issue PapersYou will choose a topic from the Complet.docxExplore the Issue PapersYou will choose a topic from the Complet.docx
Explore the Issue PapersYou will choose a topic from the Complet.docx
 
Experiencing Intercultural CommunicationAn Introduction6th e.docx
Experiencing Intercultural CommunicationAn Introduction6th e.docxExperiencing Intercultural CommunicationAn Introduction6th e.docx
Experiencing Intercultural CommunicationAn Introduction6th e.docx
 
Experimental and Quasi-Experimental DesignsChapter 5.docx
Experimental and Quasi-Experimental DesignsChapter 5.docxExperimental and Quasi-Experimental DesignsChapter 5.docx
Experimental and Quasi-Experimental DesignsChapter 5.docx
 
Explain the role of the community health nurse in partnership with.docx
Explain the role of the community health nurse in partnership with.docxExplain the role of the community health nurse in partnership with.docx
Explain the role of the community health nurse in partnership with.docx
 
Explain how building partner capacity is the greatest challenge in.docx
Explain how building partner capacity is the greatest challenge in.docxExplain how building partner capacity is the greatest challenge in.docx
Explain how building partner capacity is the greatest challenge in.docx
 
Experience as a Computer ScientistFor this report, the pro.docx
Experience as a Computer ScientistFor this report, the pro.docxExperience as a Computer ScientistFor this report, the pro.docx
Experience as a Computer ScientistFor this report, the pro.docx
 
Expansion and Isolationism in Eurasia How did approaches t.docx
Expansion and Isolationism in Eurasia How did approaches t.docxExpansion and Isolationism in Eurasia How did approaches t.docx
Expansion and Isolationism in Eurasia How did approaches t.docx
 
Experimental PsychologyWriting and PresentingPaper Secti.docx
Experimental PsychologyWriting and PresentingPaper Secti.docxExperimental PsychologyWriting and PresentingPaper Secti.docx
Experimental PsychologyWriting and PresentingPaper Secti.docx
 
EXPEDIA VS. PRICELINE -- WHOSE MEDIA PLAN TO BOOK Optim.docx
EXPEDIA VS. PRICELINE -- WHOSE MEDIA PLAN TO BOOK Optim.docxEXPEDIA VS. PRICELINE -- WHOSE MEDIA PLAN TO BOOK Optim.docx
EXPEDIA VS. PRICELINE -- WHOSE MEDIA PLAN TO BOOK Optim.docx
 
Experiments with duckweed–moth systems suggest thatglobal wa.docx
Experiments with duckweed–moth systems suggest thatglobal wa.docxExperiments with duckweed–moth systems suggest thatglobal wa.docx
Experiments with duckweed–moth systems suggest thatglobal wa.docx
 
EXP4304.521F19 Motivation 1 EXP4304.521F19 Motivatio.docx
EXP4304.521F19 Motivation  1  EXP4304.521F19 Motivatio.docxEXP4304.521F19 Motivation  1  EXP4304.521F19 Motivatio.docx
EXP4304.521F19 Motivation 1 EXP4304.521F19 Motivatio.docx
 
EXPERIMENT 1 OBSERVATION OF MITOSIS IN A PLANT CELLData Table.docx
EXPERIMENT 1 OBSERVATION OF MITOSIS IN A PLANT CELLData Table.docxEXPERIMENT 1 OBSERVATION OF MITOSIS IN A PLANT CELLData Table.docx
EXPERIMENT 1 OBSERVATION OF MITOSIS IN A PLANT CELLData Table.docx
 
Exercise Package 2 Systems and its properties (Tip Alwa.docx
Exercise Package 2 Systems and its properties (Tip Alwa.docxExercise Package 2 Systems and its properties (Tip Alwa.docx
Exercise Package 2 Systems and its properties (Tip Alwa.docx
 
Exercises for Chapter 8 Exercises III Reflective ListeningRef.docx
Exercises for Chapter 8 Exercises III Reflective ListeningRef.docxExercises for Chapter 8 Exercises III Reflective ListeningRef.docx
Exercises for Chapter 8 Exercises III Reflective ListeningRef.docx
 
Exercise 9-08On July 1, 2019, Sheridan Company purchased new equ.docx
Exercise 9-08On July 1, 2019, Sheridan Company purchased new equ.docxExercise 9-08On July 1, 2019, Sheridan Company purchased new equ.docx
Exercise 9-08On July 1, 2019, Sheridan Company purchased new equ.docx
 
Exercise 1 – Three-Phase, Variable-Frequency Induction-Motor D.docx
Exercise 1 – Three-Phase, Variable-Frequency Induction-Motor D.docxExercise 1 – Three-Phase, Variable-Frequency Induction-Motor D.docx
Exercise 1 – Three-Phase, Variable-Frequency Induction-Motor D.docx
 
ExemplaryVery GoodProficientOpportunity for ImprovementU.docx
ExemplaryVery GoodProficientOpportunity for ImprovementU.docxExemplaryVery GoodProficientOpportunity for ImprovementU.docx
ExemplaryVery GoodProficientOpportunity for ImprovementU.docx
 
Exercise Question #1 Highlight your table in Excel. Copy the ta.docx
Exercise Question #1  Highlight your table in Excel. Copy the ta.docxExercise Question #1  Highlight your table in Excel. Copy the ta.docx
Exercise Question #1 Highlight your table in Excel. Copy the ta.docx
 
Executive SummaryXYZ Development, LLC has requested ASU Geotechn.docx
Executive SummaryXYZ Development, LLC has requested ASU Geotechn.docxExecutive SummaryXYZ Development, LLC has requested ASU Geotechn.docx
Executive SummaryXYZ Development, LLC has requested ASU Geotechn.docx
 
ExemplaryProficientProgressingEmergingElement (1) Respo.docx
ExemplaryProficientProgressingEmergingElement (1) Respo.docxExemplaryProficientProgressingEmergingElement (1) Respo.docx
ExemplaryProficientProgressingEmergingElement (1) Respo.docx
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

ERD FOR UC OnlineRequirement Each book has an i.docx

  • 1. ERD FOR UC Online Requirement: Each book has an id, title, publication date, publisher, ISBN, functional category, page count, price (publisher), and product description . Please make ‘id’ for ‘BookID’. All columns name in lower case. . Price is missing. . Please Remove table name ‘Book’ in columns in same table. Like BookTitle to title. . Please edit int(100) to just int. and varchar(100) to varchar Requirement: There are 3 categories of book: fiction, non- fiction, and specialty . Why all the relationships have (o) optional, a book must have a category. (|) required in the fork? Requirement: An author can write one or more books. . Same issue optional? It’s one or many. (o) to (|). Requirement: A musician can be a solo artist, part of a group, or both . Do we need a group entity where an artist might be in a group? Assume if I need all artist from a same group, how can I find?
  • 2. Requirement: An author can also be associated with one or more publishers. . Where’s the relationships between author and publisher? Requirement: A musician/group/act can be associated with one or more music houses . Why optional? It says one or many. Requirement: An author’s book can have one or more editions. . Do we need another Book_Edition entity to maintain this relationship? Requirement: Many ISBNs can also be associated with a given publisher but only one ISBN per form of medium (ie the ISBN is the PK no matter what). . Do we need to make isbn primary key as well? A table can have multiple primary key. Requirement: UCOnline needs to keep track of user ratings for each item sold in the online store (e.g., 1-5 and 1 for ‘Dislike’, to 5, for ‘Awesome!’). . Book, Song, Album must be associated with Ratings? Requirement: A particular user rates a particular item at a given time. . Relationship? Requirement: A user CANNOT rate the same multiple times unless there are multiple editions of the item. Each edition can be rated separately. . Relationship? Requirement: Each user who submits a rating will be identified by a unique id and has a name, gender, age, and location. Nothing is anonymous.
  • 3. . Need a new entity to have this feature and relationships with customer, Book, Song, Album? SECTION 1 Data Fundamentals Overview Section Beginning (Dark Color Option ) 1 Fundamental relationship Relationship between two entity types A person, place, or thing “acts” upon something to complete ”x” (i.e. purchase a product) Binary Relationships Data Fundamentals Overview Salesperson Product Sells 2 Represents the maximum number of entities that can be involved in a relationship. One-to-One Binary Relationship
  • 4. One-to-Many Binary Relationship Many-to-Many Binary Relationship Cardinality Data Fundamentals Overview 3 The minimum number of entity occurrences that can be involved in a relationship. “inner” symbol on E-R diagram (“outer” symbol is cardinality) Modality Data Fundamentals Overview Everyone order has exactly ONE customer AND Every customer has one or more ORDERS 4 Associate occurrences of an entity type with other occurrences of the same entity type. Unary Relationships Data Fundamentals Overview
  • 5. 5 A single occurrence of one entity type can be associated with a single occurrence of the other entity type and vice versa 1:1 Relationships Data Fundamentals Overview Student Student ID # 6 Use “crow’s foot” to represent the multiple association. “many” = the maximum number of occurrences that can be involved, means a number that can be 1, 2, 3, ... n. 1:M Relationships Data Fundamentals Overview Company Product A Product B Product C 7 “Many” can be either an exact number or have a known maximum. M:M Relationships Data Fundamentals Overview
  • 6. Musicians Albums Musicians Musicians 8 Involves three different entity types Ternary Relationships Data Fundamentals Overview 9 Describes the relationship between two entities. Used with many-to-many relationships. Represented on E-R diagram as an “associative entity” Intersection Data Data Fundamentals Overview 10 Entities can have attributes; many-to-many relationships can have attributes. Many-to-many relationship may be treated similarly to entities
  • 7. in an E-R diagram. Associative Entity Data Fundamentals 11 SECTION 2 Data Modeling Creation Section Beginning (Dark Color Option ) 12 A diagramming technique Diagrams entities (with attributes) and the relationship between the entities. There are many variations of E-R diagrams in use. The E-R Diagram Data Fundamentals Overview 13 Entity Relationship Diagram Basics Entity type’s attributes are shown below the separator line. PK and boldface denote the attribute(s) that constitute the entity
  • 8. type’s unique identifier Rectangular shape OBJECT = a type of entity Name of entity is in caps above the separator line. Data Fundamentals Overview 14 In an ER diagrams, common practice is to a convention that entity type and relationship type names are uppercase letters, attribute names have their initial letter capitalized, and role names are lowercase letter Data Definition & Naming Conventions Data Fundamentals Overview 15 SECTION 3 Assignment Section Beginning (Dark Color Option )
  • 9. 16 Each book has an id, title, publication date, publisher, ISBN, functional category, page count, price (publisher), and product description There are 3 categories of book: fiction, non-fiction, and specialty There are 2 categories of music: digital and media-based An author can write one or more books. A musician can be a solo artist, part of a group, or both An author can also be associated with one or more publishers. A musician/group/act can be associated with one or more music houses An author’s book can have one or more editions. A song and or album can have more than one version/edition (i.e. EP, LP, CD, DVD etc) A publisher can have many authors and many books. A record company can have many artists associated and many albums associated with it. A record company can also be the publishing company (i.e. self- publishing) Many ISBNs can also be associated with a given publisher but only one ISBN per form of medium (ie the ISBN is the PK no matter what). An author can write many books. An artist can write many songs, albums etc. UCOnline needs to keep track of user ratings for each item sold in the online store (e.g., 1-5 and 1 for ‘Dislike’, to 5, for ‘Awesome!’). A particular user rates a particular item at a given time. A user CANNOT rate the same multiple times unless there are multiple editions of the item. Each edition can be rated
  • 10. separately. Each user who submits a rating will be identified by a unique id and has a name, gender, age, and location. Nothing is anonymous. There is also a social network between users. Users can send communication requests (i.e. instant messages/emails) to other users. Such requests can be accepted or ignored. Once accepted, the two users are considered ‘book buddies.’ If ignored, the user can send the request again. We want to add a store when the requests were sent (timestamp), the result of the requests and when the request was answered (timestamp). Tools Visio Visual Paradigm Online SQLDBM Draw.io ERDPlus Lucidchart