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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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