how to select 5 to 7 rows from a table, which contains 10 rows?

Answer Posted / narayana

select * from emp order by empid
offset 4 rows
fetch next 3 rows only

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what is xpath?

551


Do I need a report server to run reports in my application?

104


How to rename an existing column with sql server management studio?

494


While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?

616


What is a transactions?

595






While using a cursor, how can you differentiate between a deleted row and a row that has been inserted with null data values?

547


Define full outer join in sql server joins?

493


How to find out the list schema name and table name for the database?

520


What is a non equi join?

534


How to get a list of columns using the "sp_help" stored procedure in ms sql server?

579


List some major differences between triggers and stored procedures?

516


What are the differences between char and varchar in ms sql server?

568


What are parameterized reports?

160


What is parameterized reports in ssrs ?

105


What is use of attribute hierarchy optimized state? : sql server analysis services, ssas

580