Here's a really neat post that uses subqueries to return records "near" a particular record when a bunch of data is ranked.
Quote:
Sometimes, for example when you are dealing with a large table of data that you wish to have ranked, such as a sports league table, you may wish to return the ranking of a particular record, together with some records ranked just before this record, and some just after.
No comments:
Post a Comment