A table has 150 records. How do you retrieve 100th row to
120th row from that table ?

Answer Posted / arif hussain

select * from (
select ROW_NUMBER() over (order by tablename.columnname)as ronno,* from tablename )x
where ronno between 100 and 120

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 sql performance tuning?

492


What is a parameter query?

621


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

568


How much does sql cost?

518


Can you select everything, but 1 or 2 fields, without writer's cramp?

493






What is integrity in sql?

554


What is composite primary key in sql?

520


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

593


How to return multiple rows from the stored procedure?

516


What is data abstraction in sql?

507


how can we destroy the cookie? : Sql dba

555


What is primary key and unique key?

542


How do I sort a table in sql?

590


When do we use triggers?

582


What is the difference between union and union all command?

542