Data Modeling Using The Entity-Relationship (

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 4

Data Modeling Using the Entity–

Relationship (ER) Model

By : Dr: Yassen Mohamed Hadhoud


ER Model Concepts

.‫ هو نموذج يستخدم لتمثيل الكيانات التي نحتفظ عنها ببيانات في قاعده البيانات والعالقات الموجودة بين هذه الكيانات‬: ER ‫ال‬
 Entities and Attributes :

 Entities are specific persons, places,events,objects in the user environment about which the user needs to keep
data.
o for examples: The Employee , office ,Task.

‫ هو أي شخص أو اي مكان أو اي حدث أو اي شئ يهتم المستخدم بحفظ بياناته في قاعدة البيانات‬: Entities o

 Attributes are properties used to describe an entity.

 For Example Employee entity may have the attributes >>> Name , SSN , SEX , BirthDate

Entities ‫ هي الخصائص أو البيانات التي يتم تخزينها عن كل‬Attributes 


ER Model Concepts

Relationships
 A Relationships relates two or more distinct entities with a specific meaning.

 for Example Employee Ahmed works on product , Project.

 For Example Employee entity may have the attributes >>> Name , SSN , SEX , BirthDate

Entities ‫ هي الخصائص أو البيانات التي يتم تخزينها عن كل‬Attributes 


ER Model Concepts
 Simple

  Each entity has a single atomic value for the attribute. For example, SSN or Sex.

‫ مثال لرقم القومي‬................. ‫ له قيمة مجردة بدون تفاصيل مثل النوع ذكر أو انثي‬attribute ‫هي‬ 

 Composite

  The attribute may be composed of several components.

‫ او رقم التلفون يتكون من كود الدولة ورقم التليفون‬.......... ‫ اخري ويمكن استخراج عدة تفاصيل من قيمتة مثل العنوان <<< رقم البيت واسم الشارع والمدينة و الدولة‬attribute ‫ يتكون من‬attribute ‫ هي‬

 For example:

 Address(Apt#, House#, Street, City, State, ZipCode, Country), or

 Name(FirstName, MiddleName, LastName).

 Composition may form a hierarchy where some components are themselves composite.

 Multi-valued

 An entity may have multiple values for that attribute. For

example, Color of a CAR or PreviousDegrees of a STUDENT.

•  Denoted as {Color} or {PreviousDegrees}.

You might also like