<?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: DB2 UNIQUE pseudo column in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/DB2-UNIQUE-pseudo-column/m-p/2344009#M111709</link>
    <description>Hi,&lt;BR /&gt;Is UNIQUE present when you ask for a desc of the table WATCHFOLDER?&lt;BR /&gt;If so this not a pseudo-column.&lt;BR /&gt;Else you should get the answer from the DB2 documentation.</description>
    <pubDate>Tue, 06 Feb 2018 12:25:52 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-02-06T12:25:52Z</dc:date>
    <item>
      <title>DB2 UNIQUE pseudo column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB2-UNIQUE-pseudo-column/m-p/2344008#M111708</link>
      <description>&lt;P&gt;Hello&lt;/P&gt; 
&lt;P&gt;In one of the DB2Input components, the SELECT statement uses a pseudo columns called ‘UNIQUE’&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"SELECT&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;WF.UNIQUE&lt;/P&gt; 
&lt;P&gt;FROM "+context.BDU_DB2_Schema_BDU+".WATCHFOLDER WF&lt;/P&gt; 
&lt;P&gt;INNER JOIN "+context.BDU_DB2_Schema_BDU+".WATCHPATTERN P ON WF.ID = P.WATCHFOLDER_ID&lt;/P&gt; 
&lt;P&gt;WHERE P.ID = "+context.patternID&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to find out what this is and so far online search is not yielding anything useful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am guessing that the ‘unique’ pseudo column retrieves the number of unique rows based on a number of non-unique columns that taken together may constitute a unique value (i.e. composite key), but clearly the above SQL does not suggest that.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I attempt to execute the above SQL using SquirreL connected to DB2 DB, I get 5 rows of zeros.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UNIQUE.jpg" style="width: 403px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LslY.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136142i7D752BC481E37574/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LslY.jpg" alt="0683p000009LslY.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Does anyone know what does this UNIQUE column supposed to do ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Appreciate your help&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;P&gt;Patrice&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 12:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB2-UNIQUE-pseudo-column/m-p/2344008#M111708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T12:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 UNIQUE pseudo column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB2-UNIQUE-pseudo-column/m-p/2344009#M111709</link>
      <description>Hi,&lt;BR /&gt;Is UNIQUE present when you ask for a desc of the table WATCHFOLDER?&lt;BR /&gt;If so this not a pseudo-column.&lt;BR /&gt;Else you should get the answer from the DB2 documentation.</description>
      <pubDate>Tue, 06 Feb 2018 12:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB2-UNIQUE-pseudo-column/m-p/2344009#M111709</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-06T12:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 UNIQUE pseudo column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB2-UNIQUE-pseudo-column/m-p/2344010#M111710</link>
      <description>&lt;P&gt;Thanks. You were absolutely right. I have been a bozo. 'UNIQUE' is actually a column in the table rather then a pseudo column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been staring at this SQL way to long to notice, the explanation is much simpler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;P&gt;Patrice&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 12:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB2-UNIQUE-pseudo-column/m-p/2344010#M111710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T12:30:24Z</dc:date>
    </item>
  </channel>
</rss>

