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 / gourav

select * from employees
where employee_id=100
union
select* from employees
where employee_id=206;


Example

first coulumn_ id(100)
last column _id(206)

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is attribute indicator in pl sql?

1015


How do I partition a table in sql?

1131


What is the difference between delete and truncate statement in sql?

1070


what is the difference between truncate and delete statement? : Transact sql

1064


What are the string functions in sql?

976


What is the difference between inner join and natural join?

1006


what is rollback? : Sql dba

1111


What is use of trigger?

933


Lookups are a key component in sql server integration services (ssis). Explain its purpose?

1004


Which are sql * plus commands?

1130


State few characteristics of pl/sql?

971


What are the methods of filing?

935


What is schema in sql?

949


What is a pl/sql block?

1230


what are the differences among rownum, rank and dense_rank? : Sql dba

1040