getting the last N tuples of a query - Mailing list pgsql-general

From Edmundo Robles L.
Subject getting the last N tuples of a query
Date
Msg-id 252EE06031407243B058CF7699226E3A0F89A3@mail2.sensacd.com.mx
Whole thread Raw
Responses Re: getting the last N tuples of a query
List pgsql-general
Hi!

if a want the first   5,10,N tuples  of a query  (even without order)
i just  have to do a:
select  * from table limit 10;


but, What can i do to get the last  10 tuples ???
  i try to do:
select * from table limit -10;  :-D  but  that query  return 0 tuples .

So, what is the right way to do that  with no order????



pgsql-general by date:

Previous
From: "Carlo Stonebanks"
Date:
Subject: Re: No PL/PHP ? Any reason?
Next
From: Ben Chobot
Date:
Subject: Re: getting the last N tuples of a query