This will show the second highest record. I am assuming that the Field COLUMNNAME is what you are actually refering as recordID.PHP Code:SELECT TOP 1 * FROM (SELECT TOP 2 * FROM TABLENAME ORDER BY COLUMNNAME DESC) A ORDER BY COLUMNNAME ASC
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 16
Thread: How to find the n-th record ?Threaded View
|
Click Here to Expand Forum to Full Width |