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
What is the difference between char and varchar2 datatype in sql?
What are the authentication modes in sql server? How can it be changed?
How to drop existing views from a database in ms sql server?
What is user-defined function?
How to truncate the log in sql server 2012? : sql server database administration
When you use @@error and try-catch?
What do you mean by data integrity?
How to include date and time values in sql statements?
What are cursors? Explain different types of cursors. What are the disadvantages of cursors? How can you avoid cursors?
What new changes are being made in SQL Server?
How to assign null values to variables or columns?
How exceptions can be handled in sql server programming?
Explain what is the difference between union and union all?
How to transfer an existing table from one schema to another schema in ms sql server?
What is an index in sql?