BookmarkSubscribeRSS Feed
nxmogil
Obsidian | Level 7

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
Obsidian | Level 7

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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 426 views
  • 0 likes
  • 2 in conversation