How to find 8th person record in a table?
Plz mail ur answers to
mak2786@gmail.com

Regards
Arun

Answers were Sorted based on User's Feedback



How to find 8th person record in a table? Plz mail ur answers to mak2786@gmail.com Regards Ar..

Answer / chaitanya.s

retrieving 8th record from emp table in scott instance

select * from emp where rownum<=8
minus
select * from emp where rownum<=7

Is This Answer Correct ?    9 Yes 3 No

How to find 8th person record in a table? Plz mail ur answers to mak2786@gmail.com Regards Ar..

Answer / fahad

select * from emp where rownum<=8
minus
select * from emp where rownum<=7

Is This Answer Correct ?    6 Yes 0 No

How to find 8th person record in a table? Plz mail ur answers to mak2786@gmail.com Regards Ar..

Answer / shaibya sandeep dwivedi

select id,salary from (select rownum as t,id,salary from
emp) where t=8;

Is This Answer Correct ?    2 Yes 0 No

How to find 8th person record in a table? Plz mail ur answers to mak2786@gmail.com Regards Ar..

Answer / raj

select * from (select a.*, rownum as n from temp_table a)
where n = 8

Is This Answer Correct ?    0 Yes 0 No

How to find 8th person record in a table? Plz mail ur answers to mak2786@gmail.com Regards Ar..

Answer / sandeep

syntax: select <rownum>,<c.. n.. 2>,<c..n..3>
from<tablename>
group by<rownum>,<c.n.2>,<c.n.3>
having rownum=&n
eg:
select rownum,ename,empno from emp
group by rownum,ename,empno
having rownum=&8

Is This Answer Correct ?    0 Yes 1 No

How to find 8th person record in a table? Plz mail ur answers to mak2786@gmail.com Regards Ar..

Answer / raam

Hi, above both the answers not worked..

Is This Answer Correct ?    0 Yes 5 No

How to find 8th person record in a table? Plz mail ur answers to mak2786@gmail.com Regards Ar..

Answer / raj

select rownum,ename,address from emp where rownum=8;

Is This Answer Correct ?    1 Yes 6 No

How to find 8th person record in a table? Plz mail ur answers to mak2786@gmail.com Regards Ar..

Answer / hitesh rathod

or we can directly use
select * from emp where rownum=8;

Is This Answer Correct ?    6 Yes 12 No

Post New Answer

More Oracle AllOther Interview Questions

WHAT IS CARTESIAN PRODUCT?

2 Answers  


What is difference b/w Credit memo and Adjustment in AR.

1 Answers   Oracle,


Differentiate between writeoff and receipt writeoff. : oracle accounts receivable

0 Answers  


What command would you use to encrypt a PL/SQL application?

1 Answers  


How do you resize a data file?

2 Answers  






How do you use trigger to create mutating state of table

2 Answers   TCS,


What is the sql query to find the employee who has Nth maximum salary?

2 Answers  


Differentiate between transaction type and transaction source? : oracle accounts receivable

0 Answers  


Explain accounting for invoice in advance and arrears. : oracle accounts receivable

0 Answers  


What command would you use to create a backup control file?

1 Answers  


3. Steps in UAT?

0 Answers   Oracle,


TILL WHAT LEVEL OF SECURITY BO SUPPORTS?

1 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)