唯一值数量的理论定义? [英] Theoretical definition for the number of unique values?

查看:127
本文介绍了唯一值数量的理论定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

这是一个理论和定义问题。

在数据库中,我们有:


关系

a包含列和行的表


属性

a命名列/关系字段

域名

a一组或多组属性的允许值组合


元组

a一行关系


学位

关系包含的属性数

表中的字段数


基数

关系包含的元组/行数


但是!


定义是什么对于字段中唯一值的数量?


因此,如果表中有100行,并且该字段是

性别字段,只有以下值:Y,N。

你有2个独特的价值。

我们称这个概念为什么?

"列中的唯一值?

有没有?

非常感谢!

解决方案

sq ************* @ yahoo.com 写道:


大家好,


这是一个理论和定义问题。


在数据库中,我们有:


关系

a包含列和行的表


属性

a命名关系的列/字段




a一组或多组属性的允许值集


元组

a一段关系




关系包含的属性数

表格中的字段数


基数

关系包含的元组/行数


但是!


字段中唯一值的数量定义是什么?


所以,如果你有100行在一个表格中,字段是

性别字段,只有以下值:Y,N。

您有2个唯一值。


我们称这个概念为什么?

列中唯一值的数量?


有没有?



这是属性投影的基数,可能或者b


$ b b b b b b b b b b b b相同的概念刚刚合格

不同。


4月12日上午7:19,sqlservernew ... @ yahoo.com写道:


"列中唯一值的数量?



NDV - 不同值的数量。关于它没有任何理论上的含义。


4月12日上午11点19分,sqlservernew ... @ yahoo.com写道:
< blockquote class =post_quotes>
大家好,


这是一个理论和定义问题。


In数据库,我们有:


关系

a包含列和行的表


属性

a命名列/关系字段




a一组或多组属性的允许值集


元组

a一段关系




关系包含的属性数

表格中的字段数


基数

关系包含的元组/行数


但是!


字段中唯一值的数量定义是什么?


因此,如果表中有100行,并且这个领域是性别领域的b $ b d,只有以下值:Y,N。

你有2个独特的价值。


我们称这个概念为什么?

列中唯一值的数量?


有没有?


非常感谢!



Oracle统计数据将此作为DISTINCT值的数量。


我不知道如何记住适用的任何关系理论概念

。该属性的有效值范围将是

DOMAIN,并且域中的每个值都是不同的,因为

域概念与实际出现次数无关对于

真实数据。


也许其他人会记住适用于关系理论的一个

版本的概念。


HTH - Mark D Powell -



Hi Everyone,
Here is a theoretical, and definition question for you.
In databases, we have:

Relation
a table with columns and rows

Attribute
a named column/field of a relation

Domain
a set of allowable values for one or more attributes

Tuple
a row of a relation

Degree
the number of attributes a relation contains
Number of fields in a table

Cardinality
the number of tuples/rows a relation contains

But!

What is the definition for the number of unique values in a field?

So, if you have 100 rows in a table, and the field is
the gender field, with only values of: Y, N.
You have 2 unique values.
What do we call this concept?
"the number of unique values in a column?"

Is there one?
Thanks a lot!

解决方案

sq*************@yahoo.com wrote:

Hi Everyone,
Here is a theoretical, and definition question for you.
In databases, we have:

Relation
a table with columns and rows

Attribute
a named column/field of a relation

Domain
a set of allowable values for one or more attributes

Tuple
a row of a relation

Degree
the number of attributes a relation contains
Number of fields in a table

Cardinality
the number of tuples/rows a relation contains

But!

What is the definition for the number of unique values in a field?

So, if you have 100 rows in a table, and the field is
the gender field, with only values of: Y, N.
You have 2 unique values.
What do we call this concept?
"the number of unique values in a column?"

Is there one?

It is the cardinality of the projection onto the attribute, which may or
may not equal the cardinality of the domain. Same concept just qualified
differently.


On Apr 12, 7:19 am, sqlservernew...@yahoo.com wrote:

"the number of unique values in a column?"

NDV - number of distinct values. There is nothing theoretical about it.


On Apr 12, 11:19 am, sqlservernew...@yahoo.com wrote:

Hi Everyone,

Here is a theoretical, and definition question for you.

In databases, we have:

Relation
a table with columns and rows

Attribute
a named column/field of a relation

Domain
a set of allowable values for one or more attributes

Tuple
a row of a relation

Degree
the number of attributes a relation contains
Number of fields in a table

Cardinality
the number of tuples/rows a relation contains

But!

What is the definition for the number of unique values in a field?

So, if you have 100 rows in a table, and the field is
the gender field, with only values of: Y, N.
You have 2 unique values.

What do we call this concept?
"the number of unique values in a column?"

Is there one?

Thanks a lot!

The Oracle statistics refer to this as the number of DISTINCT values.

Off the top of my head I do not remember any relational theory concept
that applies. The range of valid values for the attribute would be
the DOMAIN and each value in the domain would be distinct since the
domain concept has no relation to the actual number of occurrences for
real data.

Maybe someone else will remember a concept that applies to one of the
versions of relational theory.

HTH -- Mark D Powell --



这篇关于唯一值数量的理论定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆