Re: Filtering a bunch of records to one after a selection has returned a bunch of them - Mailing list pgsql-general

From caldodge@fpcc.net (Calvin Dodge)
Subject Re: Filtering a bunch of records to one after a selection has returned a bunch of them
Date
Msg-id ca6275f0.0201011537.40906e1e@posting.google.com
Whole thread Raw
In response to Filtering a bunch of records to one after a selection has returned a bunch of them  (jfc100@btopenworld.com (Joe))
List pgsql-general
jfc100@btopenworld.com (Joe) wrote in message news:<88d9f4b3.0112270701.4a3741d@posting.google.com>...

> I am trying to establish whether or not it is possible - and how to
> implement the solution - to execute an sql statement and restricting
> the results to a single match even though there may be more than a
> single record which matches the criteria.
>
> e.g. select min(counter) from my_table butonlyone;

Ummm ... "select something from thistable limit 1".

Or is there something I'm missing here?

Calvin

pgsql-general by date:

Previous
From: Shamik Majumder
Date:
Subject: Need help
Next
From: Thomas Lockhart
Date:
Subject: Re: constants for return value from PQftype?