بســـــــــــم الله رحمن الرحيم فصـــــــل سهل وبسيط بأذن الله واعذرونا في التقصير وناقشونا في الاخطاء ان حدثت Chapter OutlineExample Database Application (COMPANY)
ER Model Concepts
– Entities and Attributes
– Entity Types, Value Sets, and Key Attributes
– Relationships and Relationship Types
– Weak Entity Types
– Roles and Attributes in Relationship Types
ER Diagrams - Notation
ER Diagram for COMPANY Schema
Alternative Notations – UML class diagrams, others__________________________________________________________
Example COMPANY
Database Requirements of the Company (oversimplified for
illustrative purposes)
– The company is organized into DEPARTMENTs.
Each department has a name, number and an
employee who manages the department. We keep
track of the start date of the department manager.
– Each department controls a number of PROJECTs.
Each project has a name, number and is located at a
single location.
Example COMPANY Database
(Cont.)
–We store each EMPLOYEE’s social security number,
address, salary, sex, and birthdate. Each employee
works for one department but may work on several
projects. We keep track of the number of hours per
week that an employee currently works on each
project. We also keep track of the direct supervisor
of each employee.
–Each employee may have a number of
DEPENDENTs. For each dependent, we keep track
of their name, sex, birthdate, and relationship to
employee.
نبدا بترجمة وبأذن الله نستفيد جميعا
هـــذا مثال على شركة مكونة من عدت ادارات لكل قسم ادارة و لة اسم وعدد من الموضفين الذي يدير وزارة الخارجية. نبقي
المسار من تاريخ بدء مدير دائرة.
âكل دائرة الرقابة في عدد من المشاريع.
كل مشروع له اسم ورقم ويقع في
موقع واحد.نحن تخزين كل الموظف رقم الضمان الاجتماعي ،
عنوان والراتب ، والجنس ، وتاريخ ميلاده. لكل موظف
يعمل لإدارة واحدة ولكنها قد تعمل على عدة
المشاريع. نحن تتبع عدد ساعات العمل لكل
الاسبوع ان الموظف يعمل حاليا على كل
المشروع. علينا أيضا أن تتبع المشرف المباشر
كل موظف.
كل موظف ، قد يكون لها عدد من
يعولهم. ليتوقف كل منها ، ونحافظ على المسار
من اسمهم والجنس وتاريخ الميلاد ، وإلى العلاقة
موظف.
Entity-Relationship Model (E/R)The Entity-Relationship model (ER) is a high-level
description of the structure of the DB
The Entity-Relationship Diagram (ERD) is a
graphical model for representing the conceptual model
for the data
A E/R models the DB using three element types:
- Entities
- Attributes
- Relationships
ترجمة الكيان العلاقة النموذجية (هاء / ص)
الكيان العلاقة النموذجية () هو رفيع المستوى
وصف هيكل ا__
والعلاقة بين الكيان التنظيمي (الشعبة) هو
نموذج رسومية لتمثل النموذج النظري
للبيانات
وهاء / نماذج صاد __ باستخدام ثلاثة أنواع العنصر :
-- الكيانات
-- سمات ( خواص )
-- العلاقات
بـــــــــأذن الله سوف نكمل الدرس لاحقـــــــــــا