<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Merge/join in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254263#M48464</link>
    <description>Ok sure.&lt;BR /&gt;For form_id 99 there are 4 questions and the questions are:&lt;BR /&gt;1v2&lt;BR /&gt;2v2&lt;BR /&gt;3v2&lt;BR /&gt;4v2&lt;BR /&gt;For form_id 98 there are 5 questions and the questions are:&lt;BR /&gt;1v1&lt;BR /&gt;2v1&lt;BR /&gt;3v1&lt;BR /&gt;4v1&lt;BR /&gt;5v1&lt;BR /&gt;&lt;BR /&gt;This corresponds to the desired table I gave as an example. The real table can have more than 100 form_ids with up to 50 questions each. Each month the number of form_ids and/or the number of questions could change (hence the v1, v2 in the question values). I'm hoping for a solution that can loop through all observations.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 03 Mar 2016 17:44:04 GMT</pubDate>
    <dc:creator>sas-inquirer</dc:creator>
    <dc:date>2016-03-03T17:44:04Z</dc:date>
    <item>
      <title>Merge/join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/252768#M48042</link>
      <description>I want to combine two data sets but I need all the data from table one to repeat whether or not a match exists in table two. Think of it like table one contains the survey questions and table two the responses. If I look up a respondent, I want to see all the questions even if they left some blank. This works great when merging questions with one respondents responses but with multiple the questions don't repeat so all I see are the questions that were answered.&lt;BR /&gt;Table 1&lt;BR /&gt;Form_id question&lt;BR /&gt;99 1&lt;BR /&gt;99 2&lt;BR /&gt;99 3&lt;BR /&gt;99 4&lt;BR /&gt;&lt;BR /&gt;Table 2&lt;BR /&gt;question response respondent_id&lt;BR /&gt;2 Apple 1001&lt;BR /&gt;3 Car 1001&lt;BR /&gt;4 Sky 1001&lt;BR /&gt;1 Outside 1002&lt;BR /&gt;2 Pear 1002&lt;BR /&gt;3 Truck 1002&lt;BR /&gt;4 Outside 1002&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I want table three to keep question 1 for respondent 1001 even though no record exists for it in table two.&lt;BR /&gt;Example of table three for respondent 1001:&lt;BR /&gt;&lt;BR /&gt;Form_id question response respondent_id&lt;BR /&gt;99 1&lt;BR /&gt;99 2 Apple 1001&lt;BR /&gt;99 3 Car 1001&lt;BR /&gt;99 4 Outside 1001&lt;BR /&gt;&lt;BR /&gt;Any help you could provide would be greatly appreciated!&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Feb 2016 17:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/252768#M48042</guid>
      <dc:creator>sas-inquirer</dc:creator>
      <dc:date>2016-02-26T17:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Merge/join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/252794#M48049</link>
      <description>&lt;P&gt;data table1;&lt;BR /&gt;input Form_id question;&lt;BR /&gt;cards;&lt;BR /&gt;99 1&lt;BR /&gt;99 2&lt;BR /&gt;99 3&lt;BR /&gt;99 4&lt;BR /&gt;;run;&lt;BR /&gt;&lt;BR /&gt;data table2;&lt;BR /&gt;input question response$ respondent_id;&lt;BR /&gt;cards;&lt;BR /&gt;2 Apple 1001&lt;BR /&gt;3 Car 1001&lt;BR /&gt;4 Sky 1001&lt;BR /&gt;1 Outside 1002&lt;BR /&gt;2 Pear 1002&lt;BR /&gt;3 Truck 1002&lt;BR /&gt;4 Outside 1002&lt;BR /&gt;;run;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table respondent_id as&lt;BR /&gt;select distinct respondent_id&lt;BR /&gt;from table2;&lt;BR /&gt;&lt;BR /&gt;data fill (drop=i);&lt;BR /&gt;&amp;nbsp; set respondent_id;&lt;BR /&gt;&amp;nbsp; do I=1 to 4;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; question=I;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;&amp;nbsp; create table full_table2 as&lt;BR /&gt;&amp;nbsp; select&amp;nbsp; COALESCE(A.respondent_id,B.respondent_id) as respondent_id,&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COALESCE(A.question,B.question) as question,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A.response&lt;BR /&gt;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; WORK.table2 A&lt;BR /&gt;&amp;nbsp; full join WORK.fill B&lt;BR /&gt;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A.respondent_id=B.respondent_id&lt;BR /&gt;&amp;nbsp; and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A.question=B.question;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 19:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/252794#M48049</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2016-02-26T19:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Merge/join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/252802#M48050</link>
      <description>&lt;PRE&gt;data dat1;
input form_id question;
cards;
99 1
99 2
99 3
99 4
;
data dat2;
input question response $ respondent_id;
cards;
2 Apple 1001
3 Car 1001
4 Sky 1001
1 Outside 1002
2 Pear 1002
3 Truck 1002
4 Outside 1002
;

proc sort data=dat1;
 by question;
run;

proc sort data=dat2 nodupkey;
 by question;
run;

data want;
  merge dat1(in=a) dat2(in=b);
  by question;
  if a;
  if question=1 then call missing(response,respondent_id);
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Feb 2016 19:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/252802#M48050</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-02-26T19:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Merge/join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254247#M48459</link>
      <description>Thank you for your solution. The output is just what I was looking for and it fills in data where needed.&lt;BR /&gt;Unfortunately I'm having trouble implementing your solution because the real data is more complicated.&lt;BR /&gt;&lt;BR /&gt;For example. I could have multiple form id's and each form could have a different number of questions. As well the question id's are alphanumeric (1v2,2v2...). Your solution only uses table 2 so table 2 would need to include form_id.&lt;BR /&gt;&lt;BR /&gt;Is there any way you could help me again?</description>
      <pubDate>Thu, 03 Mar 2016 16:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254247#M48459</guid>
      <dc:creator>sas-inquirer</dc:creator>
      <dc:date>2016-03-03T16:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Merge/join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254250#M48460</link>
      <description>&lt;P&gt;Sure, give some example data that illustrates some records that have desired results and some that do not.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 16:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254250#M48460</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2016-03-03T16:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Merge/join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254257#M48462</link>
      <description>Example table desired&lt;BR /&gt;Form_id question response respondent_id date&lt;BR /&gt;99 1v2 . 1001 201601&lt;BR /&gt;99 2v2 apple 1001 201601&lt;BR /&gt;99 3v2 car 1001 201601&lt;BR /&gt;99 4v2 yellow 1001 201601&lt;BR /&gt;99 1v2 3.99 1002 201601&lt;BR /&gt;99 2v2 apple 1002 201601&lt;BR /&gt;99 3v2 truck 1002 201601&lt;BR /&gt;99 4v2 red 1002 201601&lt;BR /&gt;98 1v1 out 1001 201601&lt;BR /&gt;98 2v1 . 1001 201601&lt;BR /&gt;98 3v1 90 1001 201601&lt;BR /&gt;98 4v1 piano 1001 201601&lt;BR /&gt;98 5v1 radio 1001 201601&lt;BR /&gt;98 1v1 in 1001 201602&lt;BR /&gt;98 2v1 zoo 1001 201602&lt;BR /&gt;98 3v1 . 1001 201602&lt;BR /&gt;98 4v1 guitar 1001 201602&lt;BR /&gt;98 5v1 radio 1001 201602&lt;BR /&gt;&lt;BR /&gt;I want to see all form_id's and all questions for each respondent_id and date. I only want a response if one was given so it's the only field that should have blanks.&lt;BR /&gt;&lt;BR /&gt;Do you need my desired output table provided in an original input table so you can see what will be provided? It's very similar to what I put in my original post except I added more than one form_id, changed the question from numeric to text and added a date variable.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Thu, 03 Mar 2016 17:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254257#M48462</guid>
      <dc:creator>sas-inquirer</dc:creator>
      <dc:date>2016-03-03T17:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Merge/join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254260#M48463</link>
      <description>&lt;P&gt;I don't know what ALL form ids or questions means.&amp;nbsp; I need a list of how many there are and what they are.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 17:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254260#M48463</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2016-03-03T17:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Merge/join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254263#M48464</link>
      <description>Ok sure.&lt;BR /&gt;For form_id 99 there are 4 questions and the questions are:&lt;BR /&gt;1v2&lt;BR /&gt;2v2&lt;BR /&gt;3v2&lt;BR /&gt;4v2&lt;BR /&gt;For form_id 98 there are 5 questions and the questions are:&lt;BR /&gt;1v1&lt;BR /&gt;2v1&lt;BR /&gt;3v1&lt;BR /&gt;4v1&lt;BR /&gt;5v1&lt;BR /&gt;&lt;BR /&gt;This corresponds to the desired table I gave as an example. The real table can have more than 100 form_ids with up to 50 questions each. Each month the number of form_ids and/or the number of questions could change (hence the v1, v2 in the question values). I'm hoping for a solution that can loop through all observations.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2016 17:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254263#M48464</guid>
      <dc:creator>sas-inquirer</dc:creator>
      <dc:date>2016-03-03T17:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Merge/join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254471#M48538</link>
      <description>&lt;DIV&gt;&lt;FONT color="navy"&gt;You know when you step away from something that's been wracking your brain for hours (or days) and then you return and the solution just smacks you in the face?&amp;nbsp; Well I just had that moment.&amp;nbsp; I can't believe I didn't think of this before and it's so simple.&amp;nbsp; Thank you to those who replied.&amp;nbsp; I really appreciate the time you put into helping me.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;FONT color="black"&gt; table1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;input&lt;FONT color="black"&gt; form_id question;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;cards&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 4&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 4&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;; &lt;FONT color="navy"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;FONT color="black"&gt; table2;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;input&lt;FONT color="black"&gt; form_id question response $ respondent_id date;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;cards&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 2 Orange 1002 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 3 Bike 1002 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 4 Smurf 1002 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 5 Red 1002 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 1 Inside 1004 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 3 Car 1004 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 4 Crayon 1004 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 5 Yellow 1004 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 1 Inside 1004 201602&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 3 Car 1004 201602&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 4 Crayon 1004 201602&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;98 5 Yellow 1004 201602&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 2 Apple 1001 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 3 Car 1001 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 4 Sky 1001 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 1 Inside 1001 201602&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 2 Apple 1001 201602&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 3 Car 1001 201602&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 4 Sky 1001 201602&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 1 Outside 1002 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 2 Pear 1002 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 3 Truck 1002 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;99 4 Blueberries 1002 201601&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;; &lt;FONT color="navy"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="green"&gt;/*Get all unique combinations of form, respondent and date*/&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;create table&lt;FONT color="black"&gt; tableA &lt;/FONT&gt;as&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;select distinct&lt;FONT color="black"&gt; form_id, respondent_id, date&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;from&lt;FONT color="black"&gt; table2;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="green"&gt;/*Add the questions from table 1*/&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;create table&lt;FONT color="black"&gt; tableB &lt;/FONT&gt;as&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;select &lt;FONT color="teal"&gt;a.&lt;/FONT&gt;&lt;FONT color="black"&gt;*, b.question&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;from&lt;FONT color="black"&gt; tableA a &lt;/FONT&gt;left join&lt;FONT color="black"&gt; table1 b&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;on&lt;FONT color="black"&gt; a.form_id = b.form_id;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="green"&gt;/*Add the responses from table 2*/&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;create table&lt;FONT color="black"&gt; tableC &lt;/FONT&gt;as&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;select &lt;FONT color="teal"&gt;a.&lt;/FONT&gt;&lt;FONT color="black"&gt;*, b.response&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;from&lt;FONT color="black"&gt; tableB a &lt;/FONT&gt;left join&lt;FONT color="black"&gt; table2 b&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;on&lt;FONT color="black"&gt; a.form_id = b.form_id &lt;/FONT&gt;and&lt;FONT color="black"&gt; a.question = b.question &lt;/FONT&gt;and&lt;FONT color="black"&gt; a.respondent_id = b.respondent_id &lt;/FONT&gt;and&lt;FONT color="black"&gt; a.date = b.date;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Mar 2016 15:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-join/m-p/254471#M48538</guid>
      <dc:creator>sas-inquirer</dc:creator>
      <dc:date>2016-03-04T15:09:28Z</dc:date>
    </item>
  </channel>
</rss>

