How to return the second 5 rows in ms sql server?
Answer / Navjot Singh
You can use a combination of `ROW_NUMBER()` and `OFFSET` to get the second 5 rows. Here is an example:n`SELECT * FROM ( SELECT *, ROW_NUMBER() OVER(ORDER BY column_name) AS row_number FROM table_name ) x WHERE row_number BETWEEN 6 AND 10`
| Is This Answer Correct ? | 0 Yes | 0 No |
wat will be the sql query to extract only last 3 records from table supose table hving thousands for records
How many types of TRIGGERS are there in MS SQL Server?
8 Answers CarrizalSoft Technologies, TCS, United Healthcare,
What is tabulation?
How to delete duplicate rows from table except one?
What are the differences in Clustering in SQL Server 2005 and 2008 or 2008 R2?
What is the use of SCOPE_IDENTITY() function?
Can you tell me the difference between DELETE & TRUNCATE commands?
Why functions are used in sql server?
How to invoke a trigger on demand?
How to drop an existing schema in ms sql server?
Explain what are the database objects? : SQL Server Architecture
explain different types of jions with examples briefly?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)