Reality: Reality Involves A Very Large Number of Details
Reality: Reality Involves A Very Large Number of Details
Model
A model is a representation of reality that retains
Object
Objects represent things that are important to
users.
Ex:
People, automobiles, books, computers
etc
Conceptual objects would be companies,
skills, organization, transactions etc.
instance.
Entity
An Entity is a person, place, object, event or concept in the
Entity type
It is a collection of entities that share common properties or
Strong Entity
A strong entity type is one that exists independent of
Weak Entity
A weak entity is one that depends on their entity
E-R Model
An entity-relationship is detailed, logical representation
E-R Diagram
Attributes
Simple Attribute
A simple attribute is an attribute that cannot be
entity STUDENT
Simple atttributes: Student_id, Sname, Dob
Composite Attributes
A composite attributes is an attribute which is having
component parts.
double lines.
EMPLOYEE (Emp_no, Emp_name, Sal, Addr, Skill)
In above example EMPLOYEE is a table/entity SKILL
Tuple
The row of a relation is called tuples.
Identifier
It is an attribute (or combination of attributes) that uniquely
composite attributes.
Ex: FLIGHT (FLIGHT_number, FLIGHT_id, Date,
No.of_passenger)
In the above example FLIGHT_Number_id combines to form an
IDENTIFIER.
Relationship
A Relationship is an association among the
Degree of Relationship
The degree of a relationship is the number of entity
Unary Relationship
It is relationship between the instances of a
Relationship.
Binary Relationship
It is a relationship between the attributes of
Ternary Relationship
A Ternary relationship is simultaneous
Cardinality Constraints
A cardinality constraint is a constraint that
Minimum Cardinality
The minimum number of instances of one entity
Maximum Cardinality
The maximum number of instances of one
Degree of a relation
The number of attributes in relations is called
Null Values
The values given an attributes in a tuple.
If the attribute is inapplicable or its value is
unknown.
Composite key
Ex: ASSIGNMENT(Worker_id, Bildg_id, Start_date,
days)
In the above table, keys consists of the
Composite key.
Candidate key
There may be more than one set of
Foreign key
A set of attributes in one relation that is key in another
relation.
These are used to indicate logical links between relations.
Ex:
WORKER(Worker_id, Name,Skill_Type, Sup_id)
ASSIGNMENT(Worker_id, Build_id, Start_date, days)
SKILL(Skill, Bonus, Hours_per_week)
Specialization
Specialization is the process of defining one or
Generalization
Generalization is the process of defining a more
Aggregation
A relationship set is an association between entity
sets.
Aggregation allows us to indicate that a
Integrity constraints
Domain constraints
Entity integrity
Referential integrity
Operational constraints
Domain constraints
A domain is a set of value that may be assigned to
Entity integrity
The Entity integrity rule is assured that every
Referential integrity
A referential integrity is a rule that maintain
Operational constraints
The most active area of business rules