0% found this document useful (0 votes)
77 views

Entity Relationship Diagram

1. Customers register with the company and can place orders for functions. 2. Functions have a single venue selected from available venues. 3. Orders include selecting a menu with food items and services like catering.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

Entity Relationship Diagram

1. Customers register with the company and can place orders for functions. 2. Functions have a single venue selected from available venues. 3. Orders include selecting a menu with food items and services like catering.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Database Design

Logical Design
• Entity Design without regard to a relational database management system
• Logical design the same, regardless of the DBMS
• Limitations or features of a particular DBMS should not be considered

Physical Design
• Logical design adapted to a particular DBMS
• The design can change slightly to fit into the limitations of a DBMS or to take advantage of
DBMS specific features.
Database Design Vernacular

Logical Design Physical Design Theoretical


Entity Table Relation

Attribute Column, Field Attribute

Row, Record Tuple


Entity Relationship Diagram
ERD
• Standard method to diagram entities, relationships and attributes
• A modeling technique

Process:
• Analysis should reveal nouns (person, place or thing)
1. Nouns grouped to common themes (entities)
2. Other nouns described common themes (attribues)
3. Some nouns uniquely identify a specific instance of an entity
(Primary Key)
Entity
Entity Types
Entity Roles Description

Domain Entity describing a core business element of the database

Linking Entity used to resolve a many-to-many relationship into two


one-to-many relationships
Lookup Entity used to store lookup values and help ensure data
integrity and consistency
Weak An entity that depends on another entity for its meaning
Relationships / Notations
Cardinality
Repeating Fields (Hidden Entities)
Construct an E-R Diagram for a Car insurance company whose
customers own one or more cars each. Each Car has associated with it
zero to many to any number of recorded accidents.

1 *
Customer Owns Car

1 1

1
Participates
Accident
Create an ER Diagram

• Traditions covers wedding functions, birthday parties and corporate


meetings
• Customers have to get registered before placing order
• Customer has to select the desired venue according to the category of
function.
• Customer can select only a single venue for a function.
• Company is also offering other services like catering, stage decoration, etc.
• For the events, Customer select the menu and catering while placing order
• Menu has many food items

You might also like