Re: Fw: Is SQL silly as an RDBMS<->app interface?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: elein <elein(at)varlena(dot)com>
Cc: Jan Wieck <JanWieck(at)Yahoo(dot)com>, Vincent Hikida <vhikida(at)inreach(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Fw: Is SQL silly as an RDBMS<->app interface?
Date: 2003-07-25 00:35:16
Message-ID: 200307250035.h6P0ZGq18583@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vincent Hikida 2003-07-25 01:10:32 Re: Fw: Is SQL silly as an RDBMS<->app interface?
Previous Message Terence Chang 2003-07-25 00:10:30 Re: Can I turn the case sensitive off