Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Hi Everyone,
How to get fist and last record from a table in oracle?

Thanks in advance

Answer Posted / chandana

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

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use joins in sql?

970


what is schema? : Sql dba

1048


How do I edit a stored procedure?

992


Explain the uses of control file.

1050


What is difference between joins and union?

1124


What is trigger types of trigger?

1069


Describe sql comments?

1039


Explain cursor types?

1026


What is a behavioral trigger?

972


What is nvarchar in sql?

924


What is the advantage of index in sql?

971


what is union, minus and interact commands? : Sql dba

1185


explain mysql aggregate functions. : Sql dba

990


What is not null in sql?

1055


List and explain the different types of join clauses supported in ansi-standard sql?

1356