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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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