Presentation is loading. Please wait.

Presentation is loading. Please wait.

ENTITY – RELATIONSHIP MODEL Melissa Ann D. Callejo Chairmane Abanilla.

Similar presentations


Presentation on theme: "ENTITY – RELATIONSHIP MODEL Melissa Ann D. Callejo Chairmane Abanilla."— Presentation transcript:

1 ENTITY – RELATIONSHIP MODEL Melissa Ann D. Callejo Chairmane Abanilla

2  Is a specialized graphic that illustrates the relationships between entities in a database.  often use symbols to represent three different types of information. BOX - commonly used to represent entities Diamond - used to represent relationships

3 OVAL - used to represent attributes

4  ENTITY - is an existing or real thing - used to identify units, whether concrete things or abstract ideas, that have no ready name or label

5 In Entity Relationship Model Entity : > correspond to a table - not a row- in a relational environment. The ERM refers to a table row as an entity instance or entity occurrence.

6 ENTITY INSTANCE Example ENTITY – PEOPLE INSTANCE – JOHNNY DEPP

7 Entity Occurrence  is an instance of an entity Billy Jones (ie: SN12345, Billy, Jones, 18/08/1950) is an entity occurrence. An entity occurrence can also be referred to as a record.

8  ATTRIBUTES -information about each entity

9  If the font is boldface, these are required fields.

10  If the attribute is underlined, it indicates that it serves as the database’s primary key.

11 PRIMARY KEY

12 Optional Attributes  attribute that does not require a value, it can be left empty.  For example: PhoneNumber

13 Composite Attributes  Can be subdivided to yield additional attributes.  Example:  Address can be divided into Street, city, state, zipcode

14 Simple Attributes  Cannot be subdivided  Example: age, gender, Religion

15 Single-Valued Attributes  Can have only a single value Example: Student and ID Number

16 Multivalued Attributes  Attribute that hold multiple values.  A customer can have multiple phone numbers, email id's etc

17 Stored and Derived Attributes  Stored Attribute: An attribute that supplies a value to the related attribute. > Date of Birth  Derived Attribute: An attribute that’s value is derived from a stored attribute. > age, and it’s value is derived from the stored attribute Date of Birth.

18 Complex Attribute  A complex attribute that is both composite and multi valued.

19 Chen and Crow’s Foot Notation Chen’s Notation

20 Crow’s Foot Notation

21

22 references  http://databases.about.com/od/specific products/l/blentity-relationship- diagrams.htm http://databases.about.com/od/specific products/l/blentity-relationship- diagrams.htm  http://www.jkinfoline.com/attribute- types.html


Download ppt "ENTITY – RELATIONSHIP MODEL Melissa Ann D. Callejo Chairmane Abanilla."

Similar presentations


Ads by Google