Data models

Data model is a collection of conceptual tools for describing data, data relationships, data semantics, and consistency constraints.

E-R Model:
  1. The entity-relationship (E-R) data model is based on a perception of a real world that consists of a collection of basic objects, called entities, and of relationships among these objects.
  1. An entity is a “thing” or “object” in the real world that is distinguishable from other objects. For example, each person is an entity, and bank accounts can be considered as entities.
  1. Entities are described in a database by a set of attributes.
  1. For example, the attributes account-number and balance may describe one particular account in a bank, and they form attributes of the account entity set. Similarly, attributes customer-name, customer-street address and customer-city may describe a customer entity.
  1. An extra attribute customer-id is used to uniquely identify customers (since it may be possible to have two customers with the same name, street address, and city).
  1. A unique customer identifier must be assigned to each customer.
  1. A relationship is an association among several entities. For example, a depositor relationship associates a customer with each account that she has.
  1. The set of all entities of the same type and the set of all relationships of the same type are termed an entity set and relationship set, respectively.
    1. The overall logical structure (schema) of a database can be expressed graphically by an E-R diagram.

Next

 

 

DBMS & SQl by P. Muthulakshmi & v. vanthana