Mod 1 3
Mod 1 3
Chapter 3
Data Model
▪ Conceptual schema
▪ Conceptual design
▪ Description of data requirements
▪ Includes detailed descriptions of the entity types, relationships,
and constraints
▪ Transformed from high-level data model into implementation
data model
▪ COMPANY
▪ Employees, departments, and projects
▪ Company is organized into departments
▪ Department controls a number of projects
▪ Employee: store each employee’s name, Social Security
number, address, salary, sex (gender), and birth date
▪ Keep track of the dependents of each employee
• In some cases, a particular entity may not have an applicable value for an
attribute. For such situations, a special value called NULL is created.
• Ex: Apartment_number, College_Degree
Complex Attributes
The collection of all entities of a particular entity type in the database at any point
in time is called an entity set or entity collection
❑An important constraint on the entities of an entity type is the key or uniqueness
constraint on attributes.
❑An entity type usually has one or more attributes whose values are distinct for
each individual entity in the entity set.
❑Such an attribute is called a key attribute, and its values can be used to identify
each entity uniquely.
❑Ex: Company Name in Company entity type, SSN in Person entity type
❑Each key attribute has its name underlined inside the oval