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

SELECT MIN(Obs)
FROM <Table_name>
UNION ALL
SELECT MAX(Obs)
from <Table_name>;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are % type and % rowtype?

1020


Can procedure in package be overloaded?

1063


How exception is different from error?

1002


What are the constraints available in sql?

1027


Who is the owner of mysql database?

1034


What is a primary key? Explain

960


What is difference between pl and sql?

1032


Define select, insert, create, delete, update, drop keywords

1034


What are the triggers associated with image items?

1030


what is the difference between sql and t-sql? : Transact sql

1072


Which is faster view or stored procedure?

931


What is view? Can we update view

1411


how can we destroy the cookie? : Sql dba

990


Why we use triggers in mysql?

978


Is primary key clustered or nonclustered?

991