In data management and database analysis, a data domain refers to all the unique values which a data element may contain. The rule for determining the domain boundary may be as simple as a data type with enumerated list of values. For example, a database table that has information about people, with one record per person, might have a "gender" column.
| Property | Value |
| dbpprop:abstract
|
- In data management and database analysis, a data domain refers to all the unique values which a data element may contain. The rule for determining the domain boundary may be as simple as a data type with enumerated list of values. 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 (or arguably "U" for unknown as a sentinel value). 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 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).
- 定義域(ていぎいき、ドメイン、英: domain)は、データ管理およびデータモデリング、データベース設計の文脈では、あるデータ要素が値としてとる可能性のある一意な値すべてから構成される、名前つきの有限集合をいう。 データ型と同じ意味と考えてよい。 現在は単に型(タイプ、type)と略されることも多い。 定義域の境界を決定する規則は、数え上げ (列挙) リストで定義されるデータ型と同じくらいに簡潔である可能性もある。 例として、関係データベース (リレーショナルデータベース) で人物についての情報を収める関係 を考える。 この関係では、一人の人物につき一つの組 (タプル、行) が対応する。 組は、0以上の属性の集合からなるデータ構造である。 この関係は、ジェンダーという属性 (列、カラム) をもつ。 属性は、属性名と定義域の名称のペアである。 属性は、その定義域に適合するなんらかの属性値をもつ。 このジェンダー属性は、2つのコード値のうち一つをもつことができる。 すなわち、"F" を女性 (Female) に、"M" を男性 (Male) に、それぞれ対応するコード値とするのである。 NULL については、ジェンダーが不明であるか、ジェンダーをあてはめられない場合に使う。 あるいは特別なコード値として "U" を不明な (Unknown) 場合に使う。 このように、ジェンダー属性の定義域は {"F", "M"} (あるいは {"F", "M", "U"}) となる。 定義域のほかの例としては、{"赤", "緑", "青", ... } で定義される色の定義域や、整数型や文字列型などが考えられるであろう。 この項目で説明している定義域の定義は、ある領域としての定義域の概念である。 ここでいう領域とは、数学における関数の定義における独立変数という値の集合という、概念である。 関係データベースのデータベース言語 SQL では、CREATE DOMAIN 構文で定義域を定義することができる。 CREATE DOMAIN PHONE_NUMBER AS CHAR(20)
- Домен — допустимое потенциальное, ограниченное подмножество значений данного типа. Например, домен ИМЕНА определен на базовом типе символьных строк, но в число его значений могут входить только те строки, которые могут представлять имена (в частности, для возможности представления русских имен такие строки не могут начинаться с мягкого или твердого знака и не могут быть длиннее, например, 20 символов). Более простое определение домена - это допустимое множество значений данного типа.
|
| dbpprop:hasPhotoCollection
| |
| rdfs:comment
|
- In data management and database analysis, a data domain refers to all the unique values which a data element may contain. The rule for determining the domain boundary may be as simple as a data type with enumerated list of values. For example, a database table that has information about people, with one record per person, might have a "gender" column.
- Домен — допустимое потенциальное, ограниченное подмножество значений данного типа.
|
| rdfs:label
|
- Data domain
- 定義域 (データベース)
- Домен (базы данных)
|
| owl:sameAs
| |
| skos:subject
| |
| foaf:page
| |
| is dbpprop:redirect
of | |