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

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:

主站蜘蛛池模板: 茶陵县| 浮梁县| 蕉岭县| 甘孜县| 交口县| 班玛县| 茶陵县| 同德县| 明溪县| 常德市| 秦安县| 巨鹿县| 宜丰县| 辉县市| 洱源县| 河北区| 上高县| 都昌县| 名山县| 七台河市| 白银市| 富锦市| 曲阜市| 长白| 松江区| 东山县| 平原县| 通榆县| 安达市| 通州区| 宁强县| 平果县| 洛宁县| 博野县| 泗阳县| 澎湖县| 澄江县| 钟祥市| 大洼县| 盐池县| 乐昌市|