Tagged articles
6 articles
Page 1 of 1
Lobster Programming
Lobster Programming
Sep 18, 2025 · Databases

Master MySQL Ranking: row_number, rank, and dense_rank Explained

Learn how MySQL window functions—row_number, rank, and dense_rank—can efficiently rank and rank‑tie data such as class scores or sales amounts, with clear syntax examples, differences in handling duplicate values, and practical SQL queries illustrated with real‑world scenarios.

ROW_NUMBERdense_rankmysql
0 likes · 6 min read
Master MySQL Ranking: row_number, rank, and dense_rank Explained
ITPUB
ITPUB
Feb 17, 2017 · Databases

How to Speed Up SQL Server Paging with ROW_NUMBER, FORCESEEK and Hash Joins

This article explains why a SQL Server paging query using TOP can take minutes, demonstrates how switching to ROW_NUMBER() with CTEs, index hints, temporary tables, and hash joins dramatically reduces execution time, and provides practical tips for handling large page numbers.

CTEHash JoinIndex Hint
0 likes · 16 min read
How to Speed Up SQL Server Paging with ROW_NUMBER, FORCESEEK and Hash Joins