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-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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