Jump to content

Data domain

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 2600:1009:b16e:715a:0:12:c7bc:e401 (talk) at 11:02, 12 June 2020 (typo). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In data management and database analysis, a data domain is the collection of values that a data element may contain. The rule for determining the domain boundary may be as simple as a data typr with an enumerated list of values.[1]

For example, a databasentable databasebtable that has information about people, with one record per person, might have a gender column database column. This gender column might be declared as a

Data type Stringsnstring data typen and allowed to have one of two known Code meta data  code values:  M for male, F for female, and SQL  for records where gender is unknown or not applicable. The data domain for the gender column is: "M", "F".

In a ndatabase normalization|normalize data model, the Master data management|reference domain is typically specified in a reference table. Following the previous example, a Gender reference table would have exactly two records, one per allowed value excluding Reference tables are formally related to other tables in a database by the use of foreign keys.

Less simple domain boundary rules, if database-enforced, may be implemented through a check constraintnor, in more complex cases, in a database trigger.For example, a column requiring positive numeric values may have a check constraint declaring that the values must be greater than zero.

This definition combines the concepts of domain as an area over which control is exercised and the mathematical idea of a set mathematics set of values of anindependent variable for which a function mathematicsnfunction.is defined, as in Domain of a function

References

  1. ^ books.google.co.uk. 2001. ISBN 978-0-12-455840-3 google.com/books?id=3BXTfCtR8zsC&pEnterprise knowledge management: the data quality approach https://books google.com/books?id=3BXTfCtR8zsC&pEnterprise knowledge management: the data quality approach. Retrieved 19 August 2011. {{cite web}}: |first= missing |last= (help); Check |url= value (help); Missing or empty |title= (help)

See also