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...

how to find the First and Last Observation from the table:
Ex: OBS Name Sal Ans like: OBS Name Sal
105 E 5000--> 105 E 5000
102 B 2000 104 D 4000
103 C 3000
101 A 1000-->
104 D 4000

Answer Posted / arjun

select * from tablename where rowid=1
union
( select * from tablename
intersect
select * from tablename where rowid = ( select max(rowid)
from tablename));

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the implicit and explicit cursors?

1048


What is the command used to fetch first 5 characters of the string?

1399


How do you go back in sql?

985


what is the bond code in materialized view?

3002


how to include character strings in sql statements? : Sql dba

1071


What is a primary key called that is made up of more than one field?

1351


What is dml and ddl?

958


What is the best free sql database?

1051


How to move files from one directory to another in pl sql?

1193


What are the two different parts of the pl/sql packages?

1087


What are conditional predicates?

1059


when MSQL8.0 is in market

2076


How do I edit a stored procedure?

992


What is left join example?

947


i have some prob lem to tell me about my self in interview first round ...

2163