<?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: SQL left join - identify cause of row duplication in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SQL-left-join-identify-cause-of-row-duplication/m-p/609520#M17901</link>
    <description>Usually quickest way is to count by your ID groups in each data set and find one that's duplicated multiple points and trace it. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 04 Dec 2019 21:11:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-12-04T21:11:59Z</dc:date>
    <item>
      <title>SQL left join - identify cause of row duplication</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SQL-left-join-identify-cause-of-row-duplication/m-p/609517#M17900</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PROC SQL to perform a left join using four common variables to join one new variable.&amp;nbsp; The left dataset has 45,370,249 rows.&amp;nbsp; The right dataset has 14,496,317 rows.&amp;nbsp; The new table contains 45,370,500 rows.&amp;nbsp; I would like to identify which records from the right dataset are causing row duplication on the left dataset.&amp;nbsp; Could anyone offer suggestions?&amp;nbsp; Below is a copy of my program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	create table medical_1217 as
	select a.*, b.provspec
	from medical_1217_icd10 a
	left join provspec_merge b
	on a.orsid = b.orsid
	and a.recordid = b.recordid
	and a.log = b.log
	and a.file_type = b.file_type;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2019 20:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SQL-left-join-identify-cause-of-row-duplication/m-p/609517#M17900</guid>
      <dc:creator>LEINAARE</dc:creator>
      <dc:date>2019-12-04T20:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL left join - identify cause of row duplication</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SQL-left-join-identify-cause-of-row-duplication/m-p/609520#M17901</link>
      <description>Usually quickest way is to count by your ID groups in each data set and find one that's duplicated multiple points and trace it. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Dec 2019 21:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SQL-left-join-identify-cause-of-row-duplication/m-p/609520#M17901</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-04T21:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL left join - identify cause of row duplication</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SQL-left-join-identify-cause-of-row-duplication/m-p/609531#M17902</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 21:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SQL-left-join-identify-cause-of-row-duplication/m-p/609531#M17902</guid>
      <dc:creator>LEINAARE</dc:creator>
      <dc:date>2019-12-04T21:23:56Z</dc:date>
    </item>
  </channel>
</rss>

