Find the best and worst records with SQL ranking functions — top N and bottom N queries, top N per category, choosing between ranking functions, and combining top and bottom in one result.
Loading content...