chap 2 dbms
chap 2 dbms
2. Conceptual design:-
After requirement have been collected and analyzed, the database creates a conceptual schema
using a high level data model called conceptual design. The conceptual schema includes brief
description of data requirements and detailed description of entity types, relationships and
constraints.
3. Logical design:-
The actual implementation of a data base, using a commercial DBMS .The conceptual schema is
transformed form high level data model into the implementation data model called logical design
or data model mapping.
4. Physical design:-
It defines the internal storage structure, index, and accesses path and file organization in the
database.
In parallel application programs are designed and implemented as data base transactions to the
high level transcation specifications.
Key constraint: Attributes whose values are distinct for each individual entity in entity set
Value sets (or domain of values) :Specifies set of values that may be assigned to that attribute
for each individual entity
Relationship : When an attribute of one entity type refers to another entity type
Relationship type(R): Relationship type(R) among n entity types E1, E2, ..., En defines a set of
associations among entities from these entity types
Role names : Role name signifies role that a participating entity plays in each relationship
instance and helps to explain what does the relationship means?
Partial key :Attributes that uniquely identify entities within the identifying relationship. A weak
entity type always has TOTAL participation
Participation constraint: Specifies whether existence of an entity depends on its being related
to another entity. There are 2 types: total and partial
Mapping Cardinalities: Express the number of entities to which another entity can be
associated via a relationship. For binary relationship sets between entity sets A and B, the
mapping cardinality must be one of:
Participation Constraints
The participation constraints specifies whether the existence of an entity depends on its
being related to another entity via a relationship type
1. Total participation, meaning that every entity in the total set of employee
entities must be related to a department entity via WORKS_FOR. Total participation
is also called existence dependency.
2. Partial participation, meaning that some or part of the set of employee entities are
related to some department entity via MANAGES, but not necessarily all.
Notation for ER diagram
ER diagram for COMPANY database
ER diagram for Hospital Management