BookmarkSubscribeRSS Feed
deltaskipper
Fluorite | Level 6

I am encountering a weird problem while joining , I have to join two data set namely POS and london_postal_codes.

The problem I facing is that when I join them in mysql server no missing values are there for the variables of table london_postal_code  but when I did the same thing in sas

there is lot of missing values.

 

my code :

proc sql;
create table case_2.combined_data as
select * from
case_2.pos_q1 t1
left join case_2.london_postal_codes t2 on t1.customer_postcode=t2.postcode
;
quit;
run;

Any suggestions?

1 REPLY 1
LinusH
Tourmaline | Level 20
Apparently the inbrhe for youbare using in SAS, soes not match on the join column. So its down to boring data quality checks. Like try to left/trim so no spaces are lingering.
Data never sleeps

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1 reply
  • 1010 views
  • 0 likes
  • 2 in conversation