BookmarkSubscribeRSS Feed
nxmogil
Fluorite | Level 6

Hi friends, 

 

I have two tables salary and department . I need to bring that particular department in to the salary table. Please throw me some ideas

emp_nosalaryfrom_dateto_date
100107248824/11/199624/11/1997
100107434724/11/199724/11/1998
100107540524/11/199824/11/1999
100107819424/11/199923/11/2000
100107958023/11/200023/11/2001
100108032423/11/200101/01/9999

 

emp_nodept_nofrom_dateto_date
10010d00424/11/199626/06/2000
10010d00626/06/200001/01/9999
2 REPLIES 2
PaigeMiller
Diamond | Level 26

Please explain the logic you are using here. Please explain what the desired output is.

--
Paige Miller
nxmogil
Fluorite | Level 6

I want the output like this . But then if you observe the employee is with d004 department till 26th june 2000. I am really not having any clue how to do this

emp_nosalaryfrom_dateto_dateDepartment
100107248824/11/199624/11/1997d1004
100107434724/11/199724/11/1998d1004
100107540524/11/199824/11/1999d1004
100107819424/11/199923/11/2000d1004
100107958023/11/200023/11/2001d006
100108032423/11/200101/01/9999d006

sas-innovate-2024.png

 

Time is running out to save with the early bird rate. Register by Friday, March 1 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 250 views
  • 0 likes
  • 2 in conversation