SlideShare une entreprise Scribd logo
1  sur  18
Six Blind Men and the Elephant
Basic ERD Symbology Entity Relationship Attribute Multivalued Attribute Associative Entity
Typical Business Relationships PRODUCTS CUSTOMERS are purchased by SUPPLIERS PRODUCTS supply ORDERS PRODUCTS contain ORDERS CUSTOMERS are placed by EMPLOYEES OFFICES are assigned to PRODUCTS STORES are sold in
Relationship Complexities (a) (b) (c) EMPLOYEE OFFICE EMPLOYEE DEPARTMENT STUDENT COURSE Each  EMPLOYEE  must be assigned to one and only one  OFFICE . Each  OFFICE  may be assigned to one and only one  EMPLOYEE. Each  EMPLOYEE  must be assigned to one and only one  DEPARTMENT . Each  DEPARTMENT  may be in charge of zero or more  EMPLOYEEs. Each  STUDENT  may be registered for zero, one, or many  COURSEs . Each  COURSE  may be taken by zero, one, or many  STUDENTs. assigned to assigned to assigned to in charge of registered for taken by
Unary Relationship PERSON COURSE EMPLOYEE married to is a prerequisite for has as a prerequisite managed by manage Each  PERSON  may be married to one and only one  PERSON. Each  COURSE  may have zero, one, or many prerequisite  COURSEs. Each  COURSE  may be a prerequisite for zero, one, or many  COURSEs. Each  EMPLOYEE  must be managed by one and only one  EMPLOYEE. Each  EMPLOYEE  may manage zero, one, or many  EMPLOYEEs.
Binary Relationship EMPLOYEE STUDENT COURSE assigned to assigned to Each  EMPLOYEE  must be assigned to one and only one  OFFICE. Each  OFFICE  may be assigned to one and only one  EMPLOYEE. Each  STUDENT  may be registered for zero, one, or many  COURSEs. Each  COURSE  may be taken by for zero, one, or many  STUDENTs. Each  CUSTOMER  may place zero, one, or many  ORDERs. Each  ORDER  must be placed by one and only one  CUSTOMER. OFFICE CUSTOMER ORDER registered for taken by place placed by
Ternary Relationship STUDENT MAJOR ADVISOR Each  STUDENT  must have declared one or more  MAJORs  and be assigned to one or more  ADVISORs. Each  ADVISOR  must be assigned to one or more  STUDENTs  and be responsible for one or more  MAJORS. Each  MAJOR  must be declared by one or more  STUDENTs  and be assigned to one or more  ADVISORs.
Associative Entity PASSENGER SCHEDULED FLIGHTS PASSENGER SCHEDULED FLIGHTS RESERVATION make reservation reserved by (a) (b)
Reading Relationships Each… entity1  relationship  entity2 Each… CUSTOMER may be placing one or more ORDERS. ORDER must be placed by one and only one CUSTOMER must be or may be one or more or one and only one {  } {  }
Characteristics of a Good Data Model Characteristic Explanation   Pictorial   A good data model should be an accurate graphical depiction of the entities and their relationships     Rigorous and Specific   A good data model should be specific with regard to the identification of all entities and their relationships and rigorous in the identification and specification of the attributes associated with each entity.     Top-down Decomposable   A good data model should be decomposable in the sense that the level of detail for each entity and its associated attributes can be investigated at various levels of detail or aggregation.     Provide Focus   A good data model should be focused on the data associated with a single system and contained within a single system boundary.     Minimally Redundant   A good data model will display minimal redundancy with regard to repeated entity types, data redundancy, and many-to-many relationships.     Transparent   The actual data and the physical structure of the database should be discernable from looking at the graphical data model.     Easily Navigated   A good data model should be laid out in an organized fashion to allow for the relationships among the entities to be easily followed.     Predicts the Final System   A good data model should be an accurate prediction of the physical implementation of the system.  
First Normal Form ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDERED PRODUCT (repeats 1 – n times) PRODUCT ID QUANTITY DESCRIPTION UNIT PRICE EXTENDED PRICE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT  PRODUCT ID + ORDER NUMBER QUANTITY DESCRIPTION UNIT PRICE EXTENDED PRICE (a) (b)
Second Normal Form ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT  PRODUCT ID + ORDER NUMBER QUANTITY DESCRIPTION UNIT PRICE EXTENDED PRICE (a) (b) ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT  PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE EXTENDED PRICE PRODUCT  PRODUCT ID  DESCRIPTION
Third Normal Form (a) (b) ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT  PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE EXTENDED PRICE PRODUCT  PRODUCT ID  DESCRIPTION ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT  PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE PRODUCT  PRODUCT ID  DESCRIPTION CUSTOMER CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE
Denormalization (a) (b) ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT  PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT  PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE MTD SALES MONTH ID  MONTHLY SALES
Fully Normalized ERD ORDER PRODUCT CUSTOMER ORDERED PRODUCT Customer Name Customer Street Customer City Customer State Customer Zipcode Customer Number Customer Phone Order Date Order Number Customer Number Sales Tax Order Subtotal Shipping Order Total Product ID + Order   Number   Quantity Unit Price Product ID Description
Selecting a Primary Key   99XXX99XX   123456789 Criteria for Selection Explanation   Stability   Choose a candidate key that will not likely change its value over time.   EXAMPLE: UNSTABLE STABLE     NAME+ADDRESS     EMPLOYEE_ID     Non-Null   Choose a candidate key that is always guaranteed to have a non-null value.   EXAMPLE: POSSIBLE NULL NON-NULL     PHONE_NO   SSN     Non-Informational   Do not create intelligent keys that attempt to convey information via their structure.   EXAMPLE: INFORMATIONAL NON-INFORMATIONAL       Location  Color  Shelf  Class Code  Code  Code  Code     Simplicity   Wherever feasible, consider using a single attribute primary key instead of a multi-attribute primary key.   EXAMPLE: SINGLE ATTRIBUTE MULTI-ATTRIBUTE       ITEM_NO+COLOR     ITEM_CODE  
Identifying Entities and Relationships Question Category Description   Determine System Entities   Find out what types of people, business units, things, places, events, materials, or other organizations are associated with, or interact with, the system and about which data must be maintained.     Identify Entity Attributes   Identify the characteristics by which each entity is associated or identified with.     Determine Entity Keys   Identify the most appropriate characteristic for each entity that uniquely distinguishes an instance of that entity from all other instances of the same entity.     Determine Relationships and Degrees   Identify the various events, transactions, or other business activities that infer an association between entities.     Determine Cardinalities and Optionalities   Identify the circumstances under which each of the relationships can occur. This requires an investigation into the various business rules under which the organization operates and the constraints imposed on the events which occur within the business environment.  
Three Normal Forms Normal Form Description   First Normal Form (1NF)     A relation is in 1NF if it contains no repeating data elements.   Second Normal Form (2NF)     A relation is in 2NF if it is in 1NF and contains no partial functional dependencies.   Third Normal Form (3NF)     A relation is in 3NF if it is in 2NF and contains no transitive dependencies.

Contenu connexe

Similaire à Six Blind Men and the Elephant Entity Relationship Diagram

Cis336 week 2 i lab 2
Cis336 week 2 i lab 2Cis336 week 2 i lab 2
Cis336 week 2 i lab 2CIS339
 
Cis336 week 2 i lab 2
Cis336 week 2 i lab 2Cis336 week 2 i lab 2
Cis336 week 2 i lab 2jackiechaner
 
Cis336 week 2 i lab 2
Cis336 week 2 i lab 2Cis336 week 2 i lab 2
Cis336 week 2 i lab 2CIS339
 
Cis336 week 2 i lab 2
Cis336 week 2 i lab 2Cis336 week 2 i lab 2
Cis336 week 2 i lab 27Fase1
 
databases3b
databases3bdatabases3b
databases3bc.west
 
databases2
databases2databases2
databases2c.west
 
Cis 336 ilab 2 of 7
Cis 336 ilab 2 of 7Cis 336 ilab 2 of 7
Cis 336 ilab 2 of 7comp274
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPTTrinath
 
Cis 336 i lab 2 of 7
Cis 336 i lab 2 of 7Cis 336 i lab 2 of 7
Cis 336 i lab 2 of 7helpido9
 
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...AlexACMSC
 
Part A Entity Relationship Diagram This new system would.pdf
Part A Entity Relationship Diagram This new system would.pdfPart A Entity Relationship Diagram This new system would.pdf
Part A Entity Relationship Diagram This new system would.pdfsdfghj21
 
A2 databases
A2 databasesA2 databases
A2 databasesc.west
 
Cis 336 cis336 week 2 i lab 2 devry university
Cis 336 cis336 week 2 i lab 2 devry universityCis 336 cis336 week 2 i lab 2 devry university
Cis 336 cis336 week 2 i lab 2 devry universitymiteamosku
 
Spend Analysis - Process, Methodology
Spend Analysis - Process, MethodologySpend Analysis - Process, Methodology
Spend Analysis - Process, MethodologyRam Raghuraman
 
Data quality and bi
Data quality and biData quality and bi
Data quality and bijeffd00
 
ICT211 Database Design.docx
ICT211 Database Design.docxICT211 Database Design.docx
ICT211 Database Design.docxwrite4
 
training and placement cell portal
training and placement cell portal training and placement cell portal
training and placement cell portal Panasa Ramaiah Sykam
 

Similaire à Six Blind Men and the Elephant Entity Relationship Diagram (20)

Dimensional Modelling
Dimensional ModellingDimensional Modelling
Dimensional Modelling
 
Cis336 week 2 i lab 2
Cis336 week 2 i lab 2Cis336 week 2 i lab 2
Cis336 week 2 i lab 2
 
Cis336 week 2 i lab 2
Cis336 week 2 i lab 2Cis336 week 2 i lab 2
Cis336 week 2 i lab 2
 
Cis336 week 2 i lab 2
Cis336 week 2 i lab 2Cis336 week 2 i lab 2
Cis336 week 2 i lab 2
 
Cis336 week 2 i lab 2
Cis336 week 2 i lab 2Cis336 week 2 i lab 2
Cis336 week 2 i lab 2
 
Cis336 week 2 i lab 2
Cis336 week 2 i lab 2Cis336 week 2 i lab 2
Cis336 week 2 i lab 2
 
databases3b
databases3bdatabases3b
databases3b
 
databases2
databases2databases2
databases2
 
Cis 336 ilab 2 of 7
Cis 336 ilab 2 of 7Cis 336 ilab 2 of 7
Cis 336 ilab 2 of 7
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
 
Cis 336 i lab 2 of 7
Cis 336 i lab 2 of 7Cis 336 i lab 2 of 7
Cis 336 i lab 2 of 7
 
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...
 
Part A Entity Relationship Diagram This new system would.pdf
Part A Entity Relationship Diagram This new system would.pdfPart A Entity Relationship Diagram This new system would.pdf
Part A Entity Relationship Diagram This new system would.pdf
 
A2 databases
A2 databasesA2 databases
A2 databases
 
Service Provider
Service Provider Service Provider
Service Provider
 
Cis 336 cis336 week 2 i lab 2 devry university
Cis 336 cis336 week 2 i lab 2 devry universityCis 336 cis336 week 2 i lab 2 devry university
Cis 336 cis336 week 2 i lab 2 devry university
 
Spend Analysis - Process, Methodology
Spend Analysis - Process, MethodologySpend Analysis - Process, Methodology
Spend Analysis - Process, Methodology
 
Data quality and bi
Data quality and biData quality and bi
Data quality and bi
 
ICT211 Database Design.docx
ICT211 Database Design.docxICT211 Database Design.docx
ICT211 Database Design.docx
 
training and placement cell portal
training and placement cell portal training and placement cell portal
training and placement cell portal
 

Plus de Kodok Ngorex (20)

Business IT Alignment Heuristic
Business IT Alignment HeuristicBusiness IT Alignment Heuristic
Business IT Alignment Heuristic
 
Business IT Alignment Heuristic
Business IT Alignment HeuristicBusiness IT Alignment Heuristic
Business IT Alignment Heuristic
 
Optimize your licenses
Optimize your licensesOptimize your licenses
Optimize your licenses
 
I go8 usermanual_eng
I go8 usermanual_engI go8 usermanual_eng
I go8 usermanual_eng
 
Finder m520 user_manual_id
Finder m520 user_manual_idFinder m520 user_manual_id
Finder m520 user_manual_id
 
Gis Tutorial Purnawan
Gis Tutorial PurnawanGis Tutorial Purnawan
Gis Tutorial Purnawan
 
Simplicity in web design
Simplicity in web designSimplicity in web design
Simplicity in web design
 
Ch10
Ch10Ch10
Ch10
 
Ch14
Ch14Ch14
Ch14
 
Ch13
Ch13Ch13
Ch13
 
Ch12
Ch12Ch12
Ch12
 
Ch11
Ch11Ch11
Ch11
 
Ch09
Ch09Ch09
Ch09
 
Ch08
Ch08Ch08
Ch08
 
Ch07
Ch07Ch07
Ch07
 
Ch04
Ch04Ch04
Ch04
 
Ch05
Ch05Ch05
Ch05
 
Ch02
Ch02Ch02
Ch02
 
Ch03
Ch03Ch03
Ch03
 
Ch01
Ch01Ch01
Ch01
 

Dernier

Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communicationskarancommunications
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayNZSG
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Centuryrwgiffor
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesDipal Arora
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Dipal Arora
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Lviv Startup Club
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfAdmir Softic
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdfRenandantas16
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear RegressionRavindra Nath Shukla
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Neil Kimberley
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756dollysharma2066
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Delhi Call girls
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsMichael W. Hawkins
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 

Dernier (20)

Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael Hawkins
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 

Six Blind Men and the Elephant Entity Relationship Diagram

  • 1. Six Blind Men and the Elephant
  • 2. Basic ERD Symbology Entity Relationship Attribute Multivalued Attribute Associative Entity
  • 3. Typical Business Relationships PRODUCTS CUSTOMERS are purchased by SUPPLIERS PRODUCTS supply ORDERS PRODUCTS contain ORDERS CUSTOMERS are placed by EMPLOYEES OFFICES are assigned to PRODUCTS STORES are sold in
  • 4. Relationship Complexities (a) (b) (c) EMPLOYEE OFFICE EMPLOYEE DEPARTMENT STUDENT COURSE Each EMPLOYEE must be assigned to one and only one OFFICE . Each OFFICE may be assigned to one and only one EMPLOYEE. Each EMPLOYEE must be assigned to one and only one DEPARTMENT . Each DEPARTMENT may be in charge of zero or more EMPLOYEEs. Each STUDENT may be registered for zero, one, or many COURSEs . Each COURSE may be taken by zero, one, or many STUDENTs. assigned to assigned to assigned to in charge of registered for taken by
  • 5. Unary Relationship PERSON COURSE EMPLOYEE married to is a prerequisite for has as a prerequisite managed by manage Each PERSON may be married to one and only one PERSON. Each COURSE may have zero, one, or many prerequisite COURSEs. Each COURSE may be a prerequisite for zero, one, or many COURSEs. Each EMPLOYEE must be managed by one and only one EMPLOYEE. Each EMPLOYEE may manage zero, one, or many EMPLOYEEs.
  • 6. Binary Relationship EMPLOYEE STUDENT COURSE assigned to assigned to Each EMPLOYEE must be assigned to one and only one OFFICE. Each OFFICE may be assigned to one and only one EMPLOYEE. Each STUDENT may be registered for zero, one, or many COURSEs. Each COURSE may be taken by for zero, one, or many STUDENTs. Each CUSTOMER may place zero, one, or many ORDERs. Each ORDER must be placed by one and only one CUSTOMER. OFFICE CUSTOMER ORDER registered for taken by place placed by
  • 7. Ternary Relationship STUDENT MAJOR ADVISOR Each STUDENT must have declared one or more MAJORs and be assigned to one or more ADVISORs. Each ADVISOR must be assigned to one or more STUDENTs and be responsible for one or more MAJORS. Each MAJOR must be declared by one or more STUDENTs and be assigned to one or more ADVISORs.
  • 8. Associative Entity PASSENGER SCHEDULED FLIGHTS PASSENGER SCHEDULED FLIGHTS RESERVATION make reservation reserved by (a) (b)
  • 9. Reading Relationships Each… entity1 relationship entity2 Each… CUSTOMER may be placing one or more ORDERS. ORDER must be placed by one and only one CUSTOMER must be or may be one or more or one and only one { } { }
  • 10. Characteristics of a Good Data Model Characteristic Explanation   Pictorial   A good data model should be an accurate graphical depiction of the entities and their relationships     Rigorous and Specific   A good data model should be specific with regard to the identification of all entities and their relationships and rigorous in the identification and specification of the attributes associated with each entity.     Top-down Decomposable   A good data model should be decomposable in the sense that the level of detail for each entity and its associated attributes can be investigated at various levels of detail or aggregation.     Provide Focus   A good data model should be focused on the data associated with a single system and contained within a single system boundary.     Minimally Redundant   A good data model will display minimal redundancy with regard to repeated entity types, data redundancy, and many-to-many relationships.     Transparent   The actual data and the physical structure of the database should be discernable from looking at the graphical data model.     Easily Navigated   A good data model should be laid out in an organized fashion to allow for the relationships among the entities to be easily followed.     Predicts the Final System   A good data model should be an accurate prediction of the physical implementation of the system.  
  • 11. First Normal Form ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDERED PRODUCT (repeats 1 – n times) PRODUCT ID QUANTITY DESCRIPTION UNIT PRICE EXTENDED PRICE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY DESCRIPTION UNIT PRICE EXTENDED PRICE (a) (b)
  • 12. Second Normal Form ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY DESCRIPTION UNIT PRICE EXTENDED PRICE (a) (b) ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE EXTENDED PRICE PRODUCT PRODUCT ID DESCRIPTION
  • 13. Third Normal Form (a) (b) ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE EXTENDED PRICE PRODUCT PRODUCT ID DESCRIPTION ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE PRODUCT PRODUCT ID DESCRIPTION CUSTOMER CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE
  • 14. Denormalization (a) (b) ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE MTD SALES MONTH ID MONTHLY SALES
  • 15. Fully Normalized ERD ORDER PRODUCT CUSTOMER ORDERED PRODUCT Customer Name Customer Street Customer City Customer State Customer Zipcode Customer Number Customer Phone Order Date Order Number Customer Number Sales Tax Order Subtotal Shipping Order Total Product ID + Order Number Quantity Unit Price Product ID Description
  • 16. Selecting a Primary Key 99XXX99XX 123456789 Criteria for Selection Explanation   Stability   Choose a candidate key that will not likely change its value over time.   EXAMPLE: UNSTABLE STABLE   NAME+ADDRESS EMPLOYEE_ID     Non-Null   Choose a candidate key that is always guaranteed to have a non-null value.   EXAMPLE: POSSIBLE NULL NON-NULL   PHONE_NO SSN     Non-Informational   Do not create intelligent keys that attempt to convey information via their structure.   EXAMPLE: INFORMATIONAL NON-INFORMATIONAL     Location Color Shelf Class Code Code Code Code     Simplicity   Wherever feasible, consider using a single attribute primary key instead of a multi-attribute primary key.   EXAMPLE: SINGLE ATTRIBUTE MULTI-ATTRIBUTE   ITEM_NO+COLOR ITEM_CODE  
  • 17. Identifying Entities and Relationships Question Category Description   Determine System Entities   Find out what types of people, business units, things, places, events, materials, or other organizations are associated with, or interact with, the system and about which data must be maintained.     Identify Entity Attributes   Identify the characteristics by which each entity is associated or identified with.     Determine Entity Keys   Identify the most appropriate characteristic for each entity that uniquely distinguishes an instance of that entity from all other instances of the same entity.     Determine Relationships and Degrees   Identify the various events, transactions, or other business activities that infer an association between entities.     Determine Cardinalities and Optionalities   Identify the circumstances under which each of the relationships can occur. This requires an investigation into the various business rules under which the organization operates and the constraints imposed on the events which occur within the business environment.  
  • 18. Three Normal Forms Normal Form Description   First Normal Form (1NF)     A relation is in 1NF if it contains no repeating data elements.   Second Normal Form (2NF)     A relation is in 2NF if it is in 1NF and contains no partial functional dependencies.   Third Normal Form (3NF)     A relation is in 3NF if it is in 2NF and contains no transitive dependencies.