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 view would you use to determine free space in a tablespace?

1 Answers  


what are the API of GL,PO,AP

1 Answers  


can u tell me how many types of oracle and which type all detail in oracle (suppose all history of oracle )

1 Answers   IBM, Oracle,


we have 10 concurrent programs under one request group out of 10 ccps all users submitting only 9 programs from srs window remaining one ccp for specific user how can it possible send me answer asap.

1 Answers   Accenture,


Tell me about entire study of finacle software as soon as possible? give me the idea about questions which coulb be asked in interview of pnb it officers?

1 Answers   Punjab National Bank,


deference between & and &&

2 Answers   Mphasis,


What is the disk migration? what is the steps involved in oracle disk migration?

1 Answers  


In my table i'm having the duplicate records with sequence number and my requirement is when in new record is coming i want to delete existing old record(onlyone i.e maintaing the partial duplicate date )and add new record

2 Answers   Syntel,


What is database schema?

4 Answers   Infosys,


How I can load an image into image item on Forms. I want to know about built-ins and procedure. and also code for it.

1 Answers  


how to write a query without using where? Example- select * from employee where empno=10 I need to write this query without where clause.

1 Answers   Alshaya,


Give the reasoning behind using an index.

2 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • 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)