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

Home -> Community -> Usenet -> c.d.o.server -> Re: Simple query that consumes all temporary space.

Re: Simple query that consumes all temporary space.

From: Jaap W. van Dijk <j.w.vandijk.removethis_at_hetnet.nl>
Date: Wed, 26 Jan 2005 11:57:04 +0100
Message-ID: <cptev0pncqscvbthscrlik6hb0b538615i@4ax.com>


On Tue, 25 Jan 2005 16:02:50 -0800, DA Morgan <damorgan_at_x.washington.edu> wrote:

<snip>
>You can't use GROUP BY and HAVING clauses without an aggregation.
<snip>

Why not? You don't have to specify an aggregate function in the SELECT list of a GROUP BY select. Without a HAVING clause that is functionally the same as specifying DISTINCT. The HAVING clause just lets you be more selective after the grouping.

The statement functionally just does what the OP wants.

Jaap. Received on Wed Jan 26 2005 - 04:57:04 CST

Original text of this message

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