Re: Fw: Is SQL silly as an RDBMS<->app interface? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Fw: Is SQL silly as an RDBMS<->app interface?
Date
Msg-id 200307250035.h6P0ZGq18583@candle.pha.pa.us
Whole thread Raw
In response to Re: Fw: Is SQL silly as an RDBMS<->app interface?  (elein <elein@varlena.com>)
List pgsql-general
Yes, it was more powerful because you could do aggregates in the query
independent of the results returned by the query.

The 'by' feature of aggregates always confused me because it would
modify the aggregate WHERE clause (that was independent of the outer
query) and restrict the aggregate to only process rows where the outer
query's column value matched the same column's value in the aggregate.

---------------------------------------------------------------------------

elein wrote:
> (Postquel, quel, whatever. My ingres days are showing.)
>
> Actually the aggregates made much more sense in [Post]quel
> than SQL.  The individual aggregate is qualified separately so that
> it does not mess with the entire query.  (Group by grief anyone?)
> Therefore it was able to select several different aggregates in one
> query. (But don't ask me to remember the syntax...)
>
> elein
>
>
> On Mon, Jul 21, 2003 at 03:57:33PM -0400, Bruce Momjian wrote:
> > Jan Wieck wrote:
> > > elein wrote:
> > > > Quel rules.
> > >
> > > PostQUEL ... we should have kept a compatibility mode for that.
> >
> > I prefer SQL for a few reasons:
> >
> >     nested queries
> >     aggregates that make sense
> >
> > Does anyone remember how QUEL had you put the qualifiction inside the
> > aggregate parens.  And the correlated aggregates were weird, sum(col1 by
> > col2 where col3 = ...).  It was a little subquery with a correlated
> > aggregate.  It still makes my head spin.
> >
> > --
> >   Bruce Momjian                        |  http://candle.pha.pa.us
> >   pgman@candle.pha.pa.us               |  (610) 359-1001
> >   +  If your life is a hard drive,     |  13 Roberts Road
> >   +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
> >
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: "Terence Chang"
Date:
Subject: Re: Can I turn the case sensitive off
Next
From: "Vincent Hikida"
Date:
Subject: Re: Fw: Is SQL silly as an RDBMS<->app interface?