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 can get the first and last observations in a dataset
using Proc SQl?

Answer Posted / venkatesh layam

crate one data in sql with adding of new var (a = 1) and
sort(order by) descending order by another variable and
take distinct of a (newvar-which is already created) --then
u wil get last observation.

next do ascending and get first obs ,then union these two
data sets .u will get first and last obs.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain substr function?

1164


List out some key concept of SAS

1214


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

2177


What is program data vector (pdv)?

1392


What are symget and symput? : sas-macro

1368


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

1143


what are the types of interactive display types? : Sas-bi

1148


Have you used macros? For what purpose you have used? : sas-macro

1087


What are the five ways to do a table lookup in sas? : sas-grid-administration

1115


How would you include common or reuse to be processed along with your statements?

2419


describe about physical data integration? : Sas-di

1096


What is the basic structure of the SAS base program?

1404


what is star schema? : Sas-di

1186


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

1076


Explain append procedure?

1134