<?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: Unique ID Generation to Existing Database in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Unique-ID-Generation-to-Existing-Database/m-p/81384#M28591</link>
    <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/255"&gt;@nick_schimweg&lt;/a&gt;and &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3824"&gt;@NicoleJohnson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for sharing your method!&amp;nbsp; Both workflows work great!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Kazumi&lt;/P&gt;</description>
    <pubDate>Sat, 16 Sep 2017 18:20:36 GMT</pubDate>
    <dc:creator>knozawa</dc:creator>
    <dc:date>2017-09-16T18:20:36Z</dc:date>
    <item>
      <title>Unique ID Generation to Existing Database</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Unique-ID-Generation-to-Existing-Database/m-p/81333#M28588</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add new IDs into existing database.&amp;nbsp; I would like to skip existing IDs and add new IDs in the name alphabetical order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the sample existing database:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Name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&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;EEE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;FFF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;LLL&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also attached a sample workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Kazumi&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 04:13:24 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Unique-ID-Generation-to-Existing-Database/m-p/81333#M28588</guid>
      <dc:creator>knozawa</dc:creator>
      <dc:date>2018-05-24T04:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unique ID Generation to Existing Database</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Unique-ID-Generation-to-Existing-Database/m-p/81360#M28589</link>
      <description>&lt;P&gt;Hi Knozawa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wasn't able to download your workflow. Please take a look at the workflow I've attached, let me know if it makes sense. As always, I'm sure there is a better way to do it however this was the first thing that came to mind.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 23:17:08 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Unique-ID-Generation-to-Existing-Database/m-p/81360#M28589</guid>
      <dc:creator>nick_schimweg</dc:creator>
      <dc:date>2017-09-15T23:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unique ID Generation to Existing Database</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Unique-ID-Generation-to-Existing-Database/m-p/81361#M28590</link>
      <description>&lt;P&gt;Take a look at the attached, I believe this achieves what you are looking for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Find matching Names&lt;/P&gt;&lt;P&gt;2. In the existing database, find the "gaps" by using the Generate Rows tool to find all ID's between the minimum and the maximum, then join to the existing database to find which ones do not exist in the existing database.&lt;/P&gt;&lt;P&gt;3. Join by Position to the new data to match however many records are needed to fill gaps in the existing ID's.&lt;/P&gt;&lt;P&gt;4. Union to matching names to create a list of existing plus new between the original minimum &amp;amp; maximum ID's, then sort ascending.&lt;/P&gt;&lt;P&gt;5. Union to any remaining ID's from the new data set, and then use the Multi-Row tool to generate new ID's for remaining records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this works or if you have any questions! :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NJ&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 23:20:59 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Unique-ID-Generation-to-Existing-Database/m-p/81361#M28590</guid>
      <dc:creator>NicoleJohnson</dc:creator>
      <dc:date>2017-09-15T23:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unique ID Generation to Existing Database</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Unique-ID-Generation-to-Existing-Database/m-p/81384#M28591</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/255"&gt;@nick_schimweg&lt;/a&gt;and &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3824"&gt;@NicoleJohnson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for sharing your method!&amp;nbsp; Both workflows work great!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Kazumi&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2017 18:20:36 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Unique-ID-Generation-to-Existing-Database/m-p/81384#M28591</guid>
      <dc:creator>knozawa</dc:creator>
      <dc:date>2017-09-16T18:20:36Z</dc:date>
    </item>
  </channel>
</rss>

