Marcin Miller's blog
Top-n query tuning in huge OLTP applications
Submitted by Marcin Miller on Wed, 2006-02-01 18:00.
Top-n Query is one of the more advanced SQL problems. How does one retrieve N first (or least) rows from a record set? For example, how does one find the top five highest-paid employees in a given department?


