| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Real world issue:- OT recreational interval
JOG wrote:
> pamelafluente_at_libero.it wrote: >
It is the same as COUNT{3}
>>(2) Answer 1. Agree ? If yes proceed.
>>
>> So. Does Count Distinct satisfy this definition:
>>
>>(3) A binary function f ( x , y ) is called idempotent
>> if for all x ,
>> f ( x , x ) = x ?
Count distinct is a composition of two functions. Distinct projects onto a set of attributes. Count distinct then counts the result of the project. Count is not idempotent, but in this case it does not operate on any duplication. (Replication means something different in the database field.)
>>(4) count distinct of { 3 , 3 } = 1, which is different from 3.
>> It doesn't.
Using set notation: { 3, 3 } = { 3 } = { 3, 3, 3} = { 3, ... 3, 3} The count (cardinality) of the above set is 1 regardless how many times we repeat 3 in its representation. Received on Mon Sep 18 2006 - 23:39:34 CDT
![]() |
![]() |