Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: grouping in tuple relational calculus

Re: grouping in tuple relational calculus

From: Vadim Tropashko <vadimtro_invalid_at_yahoo.com>
Date: 16 Feb 2005 17:59:04 -0800
Message-ID: <1108605544.024502.230810@l41g2000cwc.googlegroups.com>

Mikito Harakiri wrote:
> "Paul" <paul_at_test.com> wrote in message
> news:4213e7b7$0$53482$ed2619ec_at_ptn-nntp-reader03.plus.net...
> > Mikito Harakiri wrote:
> > > Speaking of aggregates, I always wondered why some aggregates are
> > > expressable by standard means (min, max can be expressed as
antijoins),
> > > while the others aren't (sum).
> >
> > I guess that min and max only require an ordering, which is a more
> > fundamental concept than addition, which is required for sum.
>
> That's right, on one hand, aggregate min and max are based upon
lattice join
> and meet binary operators, similar to sum based upon binary addition.
This
> makes all of them to fit into aggregate framework. On the other hand,
> lattice implies order, and with order one can leverage antijoin.

Not quite. In a lattice that is not a total order, we can have both max(a,b)!=a and max(a,b)!=b. Therefore, no antijoin can help producing those new values. Thus, it is essential for the order to be total. Why? Received on Wed Feb 16 2005 - 19:59:04 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US