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

I have a dataset concat having a variable a b & c. How to rename a b to e & f?

1290


explain about sas business intelligence? : Sas-bi

1147


How can I remove header from output data set?

2632


What commands are used in the case of including or excluding any specific variables in the data set?

1098


What are the difficulties u faced while doing vital signs table or dataset?

2397


what is the difference between infile and input? : Sas-administrator

1148


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

1020


how will you location sas platform applications available from web browser? : Sas-bi

1080


Describe the function and untility of the most difficult SAS macro that you have written.

2114


What are the different types of sas functions?

1286


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2617


What is the difference between nodupkey and nodup options?

1044


what is business intelligence? : Sas-bi

1069


What can be the size of largest dataset in SAS?

1235


What is the use of function Proc summary?

1290