|
-
July 5th, 2006, 07:43 AM
#8
Re: How to find the n-th record ?
Hi all,
If you have to set the ORDER BY condition for one column only, there is another solution:
select *
from MyTable
where field = (select max(field)
from MyTable)
This is standard SQL, and if field is primary key, or there's an index on field, probably this is the fastest query that solves your problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|