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

Answer Posted / sajida

select rnum, d.* from dept d, (select rownum rnum , deptno
from dept ) e
where d.deptno = e.deptno and rnum between 5 and 7;

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you set a trace flag in sql server?

557


What is a non-clustered index?

568


Explain the difference between primary keys and foreign keys?

517


What is the maximum size of sql server database?

513


When I delete any data from a table, does the sql server reduce the size of that table?

588






What is the difference between mysql and mysqli?

584


What are the differences in Clustering in SQL Server 2005 and 2008 or 2008 R2?

595


What is the difference between coalesce() & isnull()?

534


Define compound operators?

537


What are the hotfixes and patches in sql server?

547


How to Check if table exists in sql server?

619


When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

658


What stored by the master?

547


Why use “nolock” in sql server?

565


Explain sql server authentication modes?

617