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

How to use like conditions in oracle?

564


What is a subquery?

607


what is Single Byte Overhead...?

2055


What is a tns file?

495


What do you understand by a database object?

577






Is it possible to insert comments into sql statements return in the data model editor ?

2061


What is tns entry?

616


What is the difference between hot backup and cold backup in oracle?

520


Calculate difference between 2 date / times in oracle sql?

560


How to create a table in a specific tablespace?

532


How do we get field detail of a table?

615


Describe varray?

579


What is oracle used for?

527


How to export your own schema?

560


What is the difference between view and materialized view in Oracle?

599