data model
data model
(database)A data model says what information is to be contained in adatabase, how the information will be used, and how the itemsin the database will be related to each other.
For example, a data model might specify that a customer isrepresented by a customer name and credit card number and aproduct as a product code and price, and that there is aone-to-many relation between a customer and a product.
It can be difficult to change a database layout once code hasbeen written and data inserted. A well thought-out data modelreduces the need for such changes. Data modelling enhancesapplication maintainability and future systems may re-useparts of existing models, which should lower developmentcosts.
A data modelling language is a mathematical formalism with anotation for describing data structures and a set ofoperations used to manipulate and validate that data.
One of the most widely used methods for developing data modelsis the entity-relationship model. The relational model isthe most widely used type of data model. Another example isNIAM.
["Principles of Database and Knowledge-Base Systems",J.D. Ullman, Volume I, Computer Science Press, 1988, p. 32].
data model
A description of the organization of a database. It is often created as an entity relationship diagram. Today's modeling tools allow the attributes and tables (fields and records) to be graphically created. The SQL code that defines the data structure (schema) in the database is automatically created from the visual representation. See entity relationship model.Building an Entity Relationship Model |
---|
The Erwin modeling program from Logic Works, Princeton, NJ, stands for Entity Relationship for Windows. In this order processing example, the tables for customers and orders are drawn graphically, and Erwin turns the graph into the appropriate SQL code for the target database. (Example courtesy of Logic Works, Inc.) |