Summary Chapter 2 - Data Models
Summary Chapter 2 - Data Models
(SUMMARY)
DATABASE MANAGEMENT SYSTEMS (ICT501)
Pn Marhainis Jamaludin
Faculty Of Computer And Mathematical Sciences
Uitm Kelantan
Data Models
2. Attribute
• Is a characteristic of an entity.
• Example : the attributes for STUDENT entity can be student number, student name, age, gender, program
3. Relationship
• Describes the association between the entities.
• Example : relationship between STUDENT entity and LECTURER entity can be described as each student can be
taught by many lecturers and each lecturer can teach many students.
• Three types of relationships :
1. One-to-One (1:1)
2. One-to-Many (1:M)
3. Many-to-Many (M:N)
4. Constraint
• Is a restriction placed on data to ensure the data integrity.
• Example : a student’s CGPA must be between 0.00 and 4.00
Each teach must supervise only one student.
Business Rules