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

what are 5 ways to perform a table lookup in sas? : Sas-administrator

1237


how do you debug and test your sas programs? : Sas programming

1124


how the sas basic syntax style described? : Sas-administrator

1019


how are numeric and character missing values represented internally? : Sas programming

1146


Why and when do you use proc sql?

1247


How do dates work in sas?

1138


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

1157


How many data types are there in SAS?

1078


What is the length assigned to the target variable by the scan function?

1155


Mention what is PROC in SAS?

1057


describe the interaction table in sas di? : Sas-di

1031


What is the function of Stop statement in a SAS Program?

1151


what are informats in sas? : Sas-administrator

1093


What do you know about sas and what we do? : sas-grid-administration

1145


How can sas program be validated?

1034