Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Entity–relationship model
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Introduction == An ER model usually results from systematic analysis to define and describe the data created and needed by processes in a business area. Typically, it represents records of entities and events monitored and directed by business processes, rather than the processes themselves. It is usually drawn in a graphical form as boxes (''entities'') that are connected by lines (''relationships'') which express the associations and dependencies between entities. It can also be expressed in a verbal form, for example: ''one building may be divided into zero or more apartments, but one apartment can only be located in one building.'' Entities may be defined not only by relationships, but also by additional properties (''attributes''), which include identifiers called "primary keys". Diagrams created to represent attributes as well as entities and relationships may be called entity-attribute-relationship diagrams, rather than entity–relationship models. An ER model is typically implemented as a [[database]]. In a simple relational database implementation, each row of a table represents one instance of an entity type, and each field in a table represents an attribute type. In a [[relational database]] a relationship between entities is implemented by storing the primary key of one entity as a pointer or "foreign key" in the table of another entity. There is a tradition for ER/data models to be built at two or three levels of abstraction. The conceptual-logical-physical hierarchy below is used in other kinds of specification, and is different from the [[three schema approach]] to [[software engineering]]. ;[[Conceptual data model]] :This is the highest level ER model in that it contains the least granular detail but establishes the overall scope of what is to be included within the model set. The conceptual ER model normally defines master reference data entities that are commonly used by the organization. Developing an enterprise-wide conceptual ER model is useful to support documenting the [[data architecture]] for an organization. :A conceptual ER model may be used as the foundation for one or more ''logical data models'' (see below). The purpose of the conceptual ER model is then to establish structural [[metadata]] commonality for the [[master data]] entities between the set of logical ER models. The conceptual data model may be used to form commonality relationships between ER models as a basis for data model integration. ;[[Logical data model]] :A logical ER model does not require a conceptual ER model, especially if the scope of the logical ER model includes only the development of a distinct information system. The logical ER model contains more detail than the conceptual ER model. In addition to master data entities, operational and transactional data entities are now defined. The details of each data entity are developed and the relationships between these data entities are established. The logical ER model is however developed independently of the specific [[database management system]] into which it can be implemented. ;[[Physical data model]] :One or more physical ER models may be developed from each logical ER model. The physical ER model is normally developed to be instantiated as a database. Therefore, each physical ER model must contain enough detail to produce a database and each physical ER model is technology dependent since each database management system is somewhat different. :The physical model is normally instantiated in the structural metadata of a database management system as relational database objects such as [[database table]]s, [[database index]]es such as [[unique key]] indexes, and database constraints such as a [[foreign key constraint]] or a commonality constraint. The ER model is also normally used to design modifications to the relational database objects and to maintain the structural metadata of the database. The first stage of [[information system]] design uses these models during the [[requirements analysis]] to describe information needs or the type of [[information]] that is to be stored in a [[database]]. The [[data modeling]] technique can be used to describe any [[ontology (information science)|ontology]] (i.e. an overview and classifications of used terms and their relationships) for a certain [[universe of discourse|area of interest]]. In the case of the design of an information system that is based on a database, the [[conceptual data model]] is, at a later stage (usually called logical design), mapped to a [[logical data model]], such as the [[relational model]]. This in turn is mapped to a physical model during physical design. Sometimes, both of these phases are referred to as "physical design."
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)