Marcin Miller's blog
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?