Re: select top N entries from several groups - Mailing list pgsql-novice

From Reinhard Hnat
Subject Re: select top N entries from several groups
Date
Msg-id 002901c53f67$0a7a8470$0163a8c0@hnat
Whole thread Raw
In response to select top N entries from several groups  (David Orme <d.orme@imperial.ac.uk>)
List pgsql-novice
Would you like:

INSERT INTO finaltable SELECT gp, val FROM temp where gp = 'A' ORDER BY val
DESC LIMIT 2;

best regards
R.Hnat



pgsql-novice by date:

Previous
From: Sean Davis
Date:
Subject: Re: select top N entries from several groups
Next
From: David Orme
Date:
Subject: Re: select top N entries from several groups (Modified by David Orme)