Data Model A data model is a relatively simple representation, usually graphical, of more complex real-world data structures. Data Models Basic Building Blocks o An entity represents a particular type of object in the real world . Each entity occurrence is unique and distinct o An attribute is a characteristic of an entity. o A relationship describes an association among entities. § One-to-many (1:M or 1..*) relationship . A painter paints many different paintings, but each one of them is painted by only one painter.. § Many-to-many (M:N or *..*) relationship . A student may learn many subjects, and each subject may be learned by many students § One-to-one (1:1 or 1..1) relationship . A company’s management structure may require that each of its stores be managed by a single employee. In turn, each store manager, who is an employee, manages only a single store. o A constraint is a rest...
Comments
Post a Comment