官术网_书友最值得收藏!

Entity relationship modeling

The entity relationship modeling (ER modeling) technique uses the entity and relationships to create the logical data model. The ER modeling technique was developed by Peter Chen in 1976. This technique is best suited for the Online Transaction Processing (OLTP) systems.

An entity in this model refers to the any thing or object in the real world that has distinguishable characteristics. Each entity has some properties and the corresponding values of these properties. Consider, for example, Customer, Employee, Product, and so on. Each of these entities has some specific properties.

For example, the Customer entity has a name, address, contact number, city, state, and so on. These are called the properties, and each property has a value associated with it.

A relationship in this model is the relationship between the two or more entities. There are three basic types of relationship that can exist:

  • One-to-one: This relation means each value from one entity has a single relation with a value from the other entity. For example, one customer is handled by one sales representative:
  • One-to-many: This relation means each value from one entity has multiple relations with values from other entities. For example, one sales representative handles multiple customers:
  • Many-to-many: This relation means all values from both entities have multiple relations with each other. For example, one book can have many authors and each author can have multiple books:

An example of the sample ER diagram is shown as follows:

主站蜘蛛池模板: 富裕县| 黔南| 西丰县| 沐川县| 青州市| 盘锦市| 雅安市| 揭西县| 长治县| 四川省| 呼玛县| 策勒县| 罗田县| 英吉沙县| 泸定县| 广南县| 平谷区| 通许县| 蓬安县| 巴楚县| 河间市| 龙游县| 筠连县| 华蓥市| 定日县| 临江市| 昌图县| 正定县| 镶黄旗| 闸北区| 开阳县| 保山市| 白玉县| 资溪县| 安达市| 孟津县| 河北区| 玉林市| 汝州市| 申扎县| 永登县|