Re: select records by nearest value - Mailing list pgsql-novice

From e-letter
Subject Re: select records by nearest value
Date
Msg-id BANLkTin6WRAG_-W3o3MzaNTg4U+brr5_9w@mail.gmail.com
Whole thread Raw
In response to select records by nearest value  (e-letter <inpost@gmail.com>)
Responses Re: select records by nearest value  (Lew <noone@lewscanon.com>)
List pgsql-novice
Thanks, I read the link and received the following error:

ERROR:  aggregates not allowed in WHERE clause

Using the example:

WHERE g1.gid = 1 and g1.gid <> g2.gid

The error occurs if the function:

=1

is replaced by:

SUM(1000)

Another question: what does '<>' mean? Couldn't find explanation in the manual.

pgsql-novice by date:

Previous
From: Joshua Tolley
Date:
Subject: Re: More WAL archiving/backup questions
Next
From: Lew
Date:
Subject: Re: select records by nearest value