how to select 5 to 7 rows from a table, which contains 10 rows?
Answer Posted / smitha
select * from (select row_number() over (order by empid) as
row, *
from employee)a
where a.row between 4 and 5
Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
How to create a user to access a database in ms sql server using "create user" statements?
How do I start sql server?
Differentiate between a local and a global temporary table?
What is data source in connection string?
what is memory-optimized nonclustered indexes
Can you use order by when defining a view?
explain declarative management framework (dmf) in sql server 2008?
Explain multiserver query
Where to find ntwdblib.dll version 2000.80.194.0?
What is difference between joins and subqueries?
What purpose does the model database server?
Write the queries for commands like Create Table, Delete table, Drop Table etc.
List the various tools available for performance tuning?
What is the use of “join” in sql server?
What is open database communication (odbc)?