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

What is a ddl statement?

513


Can you explain various data region available in ssrs with their use?

549


How to use old values to define new values in update statements in ms sql server?

686


What is statement level trigger?

545


What to check if a User database is locked?

589






How to add an address record into adventureworkslt?

574


How to convert numeric values to integers in ms sql server?

534


What does select 1 mean?

534


Explain different forms of normalization?

534


Can you please explain the difference between primary keys and foreign keys?

660


Describe and explain about SQL native client?

622


What is the difference between substr and charindex in the sql server?

512


What are the different acid properties?

629


What is the most common type of join?

532


What are the parts of a function?

523