It depends on what your dbms supports, but look at the ORDER BY and LIMIT clauses.
After Compline,
Zaxo
In reply to Re: Ranking position in a SQL index
by Zaxo
in thread Ranking position in a SQL index
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |