词条 | Data domain |
释义 |
In data management and database analysis, a Data Domain refers to all the values which a data element may contain. The rule for determining the domain boundary may be as simple as a data type with an enumerated list of values.[1] For example, a database table that has information about people, with one record per person, might have a "gender" column. This gender column might be declared as a string data type, and allowed to have one of two known code values: "M" for male, "F" for female, and NULL for records where gender is unknown or not applicable. The data domain for the gender column is: "M", "F". In a normalized data model, the 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 NULL. 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 constraint or, 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 of values of an independent variable for which a function is defined. See: domain (mathematics). References1. ^{{cite web |url= https://books.google.com/books?id=3BXTfCtR8zsC&pg=PA302|title=Enterprise knowledge management: the data quality approach|first=David|last=Loshin |work=books.google.co.uk |year=2001|ISBN=978-0-12-455840-3 |accessdate=19 August 2011}} See also
1 : Data modeling |
随便看 |
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。