From: Richard Huxton <dev@archonet.com>
To: pgsql-sql@postgresql.org
To: juerg.rietmann@pup.ch
Subject: Re: monster query, how to make it smaller
Date: Tue, 23 Jan 2001 16:05:56 -0000
Message-ID: <008101c08556$5f510200$1001a8c0@archonet.com> (raw)
References: <OF81AB8B38.22ACC82B-ONC12569DD.00504C90@pup.ch>
----- Original Message -----
From: <juerg.rietmann@pup.ch>
To: <pgsql-sql@postgresql.org>
Sent: Tuesday, January 23, 2001 2:42 PM
Subject: [SQL] monster query, how to make it smaller
> Hello everybody
>
> I need some help on a monster query. Please see the attached file for the
> query itself. The only difference is Z_durch_soll and the offset, which is
> currently 0.25. The query will run in a loop where I increment this offset
> until I find enough records.
I'm not entirely clear on what you are trying to do, but perhaps something
like
... AND Z_durch_soll in ('286.35', '286.30', '286.25')
instead of all the UNIONs? This is the same as
... AND (Z_durch_sol1='286.35' OR Z_durch_sol1='286.30' ...)
HTH
- Richard Huxton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, juerg.rietmann@pup.ch
Subject: Re: monster query, how to make it smaller
In-Reply-To: <008101c08556$5f510200$1001a8c0@archonet.com>
References: <OF81AB8B38.22ACC82B-ONC12569DD.00504C90@pup.ch> <008101c08556$5f510200$1001a8c0@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox