Top "Row-number" questions

An index or rank which indicates a row's position in a data-set.

How do I use ROW_NUMBER()?

I want to use the ROW_NUMBER() to get... To get the max(ROW_NUMBER()) --> Or i guess …

sql sql-server row-number
ROW_NUMBER() in MySQL

Is there a nice way in MySQL to replicate the SQL Server function ROW_NUMBER()? For example: SELECT col1, col2, …

mysql sql greatest-n-per-group rank row-number
MySQL - Get row number on select

Can I run a select statement and get the row number if the items are sorted? I have a table …

mysql sql row-number
Oracle 'Partition By' and 'Row_Number' keyword

I have a SQL query written by someone else and I'm trying to figure out what it does. Can someone …

sql oracle partition row-number analytic-functions
Equivalent of Oracle's RowID in SQL Server

What's the equivalent of Oracle's RowID in SQL Server?

sql sql-server tsql rowid row-number
Trouble using ROW_NUMBER() OVER (PARTITION BY ...)

I'm using SQL Server 2008 R2. I have table called EmployeeHistory with the following structure and sample data: EmployeeID Date DepartmentID …

sql sql-server sql-server-2008 row-number gaps-and-islands
Select specific row from mysql table

Ideally I need a query that is equivalent to select * from customer where row_number() = 3 but that's illegal. I can't …

mysql select row-number
MSSQL Select statement with incremental integer column... not from a table

I need, if possible, a t-sql query that, returning the values from an arbitrary table, also returns a incremental integer …

sql sql-server sql-server-2000 auto-increment row-number
Why is there still a row limit in Microsoft Excel?

Until Office 2007, Excel has a maximum of 65,000 rows. Office 2007 bumped that up to a max of 1 million rows, which is …

excel row-number limits
How to show row number in Access query like ROW_NUMBER in SQL

I have a table in Microsoft Access, and I want to show row number in a column using a select …

ms-access-2007 row-number