SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 need sql query
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nav Sweeney
Starting Member

1 Posts

Posted - 10/06/2012 :  13:40:52  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 10/06/2012 :  18:50:53  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000