Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 need sql query

Author  Topic 

Nav Sweeney
Starting Member

1 Post

Posted - 2012-10-06 : 13:40:52
Hi folks,
I have a SAS dataset with the following columns: THE DATA LOOKS SOMETHING LIKE THE SAMPLE PRESENTED BELOW:

EMPLOYEEID DATE(DDMMYYYY) DAILY_WAGES
E235888 22/07/2011 200
E797890 22/07/2011 180
E098098 23/09/2011 230
E353454 24/05/2011 290
E809890 02/09/2011 230
E879890 06/08/2011 240
E879890 30/05/2011 150
E879890 25/09/2011 100


I want to create two extra columns:

i. Maximum(highest) wage earned for each and every employee in the last three months
ii. Maximum(highest) wage earned in the last 12 months for those employees who have been with the company for over a year?
iii. last wage (final or most recent wage earned)

Please provide me the SAS logic

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-10-06 : 18:50:53
This forum specializes in Microsoft SQL Server; so there are very few if any experts on SAS that frequent this forum. You may get faster and better answers if you posted your question to an SAS forum.
Go to Top of Page
   

- Advertisement -