Re: Performance question (stripped down the problem)

From: "Tille, Andreas" <TilleA(at)rki(dot)de>
To:
Cc: "'PostgreSQL General'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Performance question (stripped down the problem)
Date: 2001-09-19 09:30:50
Message-ID: Pine.LNX.4.33.0109191130100.9092-100000@wr-linux02.rki.ivbb.bund.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 18 Sep 2001, Matt Block wrote:

> > echo "SELECT Hauptdaten_Fall.MeldeKategorie, Count
> > (Hauptdaten_Fall.ID) AS Anz FROM Hauptdaten_Fall
> > WHERE (((Hauptdaten_Fall.IstAktuell)=20)) GROUP
> > BY Hauptdaten_Fall.MeldeKategorie ORDER BY
> > Hauptdaten_Fall.MeldeKategorie;" | psql ifsgtest > result
>
> I've not yet looked at the rest of the problem, but doesn't
> ORDER BY make GROUP BY redundant? Just an extra sort?
No it doesn´t. I have to do exact this query.

Kind regards

Andreas.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Christophe Boggio 2001-09-19 10:42:00 Fwd: URGENT ! Nouveau virus
Previous Message Tom Lane 2001-09-19 04:25:54 Re: Recreating indices safely