Display the records between two range?

select rownum, empno, ename from emp where rowid in (select rowid from emp where rownum <=&upto minus select rowid from emp where rownum<&Start);

Showing Answers 1 - 10 of 10 Answers

Harsa

  • Apr 19th, 2006
 

select empno, ename from emp where rownum <=&upto
minus
select empno, ename from emp where rownum <=&start;
 

  Was this answer useful?  Yes

manish

  • Apr 3rd, 2007
 

select * from client_master where client_id between '2001' and '2006'

LRANI

  • Jul 31st, 2007
 


Hi,
minus is used for finding the missing records between 2 tables and not finding the records between the range.

It is BETWEEN operator that displays the records between 2 ranges from single table.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions