Re: How to define TOP 5 records?
Posted by:
Sergei
Date: June 16, 2005 05:09AM
Take a look here :)
select t_2.*
from ttt t_2
where vote>=(select t_1.vote
from ttt t_1
order by vote desc
limit 4,1)
order by t_2.vote desc
uid uname vote
------ ------ ------
5 Mike 10
6 BOSS 8
3 Peter 4
4 Kate 3
1 Smith 1
2 Joe 1
Subject
Written By
Posted
Re: How to define TOP 5 records?
June 16, 2005 05:09AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.