Relationship & Entity Set
Relation:
To work with large amount of data, different types of data tables have to be created. Various types of data can be presented and used as desired by establishing relationships between data in one data table and another data table. The relationship between data in one data table and data in one or more data tables is called a relation. All the data tables in which the relation is to be established must have at least one common field. Relationships are established based on this common field. Data relationships cannot be created at will. For this, some conditions have to be met, such as-
(i) A relational data table should have a common field, which field name, data type, field size format, etc. should be exactly the same.
(ii) A field in a relational data table is identified as a primary key.
Relationship Benefits:
Establishing relationships between multiple data tables provides many benefits. Some of the notable ones are--
(i) It is easy to represent large amount of data as desired.
(ii) Data from numerous flow tables can be easily manipulated.
(iii) Data sorting and searching is easy.
(x) Can work with huge amount of data.
(v) Data entry is simple and concise.
(vi) Requires less memory usage.
(vii) Data structure implementation becomes easier etc.
Entity:
Entity: Entity is the main unit required for standard classification of real and unreal objects. The entity may have real presence or it may be based only on concept. Examples of data entities are building room, chair, business contract, syllabus, machine, employee, country, nation etc.
Entity Set: Entity Set is a set of similar objects related to an organization, which have data. Identifying and classifying objects from entity sets is sometimes difficult. Because, an object can be present in multiple entity sets at the same time. For example, a person can be a student and a part-time worker at the same time.
Entity Relationship Model:
The relationship between various entity attributes is the entity relationship and the expression of this relationship is the entity relationship model. An entity set contains different types of entity . Each entity has some attributes. The same attribute can exist in multiple entities. The entity relationship model is a way of expressing the relationship between different entities in an entity set. The entity relationship model is widely used in database design. Usually the entity relationship model is used in logical database model design.
Comments
Post a Comment