How to retrieve first and last records from a table?

Answer Posted / reddy

select*from emp where rowid in (select min(rowid),max(rowid) from emp);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a trigger oracle?

563


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

1648


what are the advantages of running a database in archive log mode?

1733


How do we create privileges in oracle?

588


what is reindexing?

1179






How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

546


What is ADDM Advisor in Oracle?

662


What is the max number of columns in an oracle table?

513


How to view existing locks on the database?

552


Write a syntax for update query in oracle?

620


What is redo log?

623


What is a procedure in oracle?

618


can u plz provide me oca sql dumps please i need them

1466


What happens if recursive calls get out of control?

548


What is rowid and rownum in oracle?

543