<?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 Custom business rule using compound join in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/Custom-business-rule-using-compound-join/m-p/2196915#M155</link>
    <description>Hi,
&lt;BR /&gt;I have a business rule to implement which involves two tables (call them T1 and T2). I want to check some values for records which are related on two columns in the tables (Call them col1 and col2). So in SQL my rule is:
&lt;BR /&gt;
&lt;BR /&gt;Select
&lt;BR /&gt;T1.col1,T1.col2,T2.col1,T2.col2
&lt;BR /&gt;from T1
&lt;BR /&gt;inner join T2 on T1.col1 = T2.col1 and T1.col2 = T2.col2
&lt;BR /&gt;where t1.col3 = t2.col3
&lt;BR /&gt;
&lt;BR /&gt;The problem is I can only configure a single column join in the join condition. If I specify a new row i the join condition it treats this as a new instance of the table and if I specify the additional join in the where clause, the passing rows works correctly but the failing rows is wrong.
&lt;BR /&gt;???
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Dan</description>
    <pubDate>Sat, 16 Nov 2024 10:05:41 GMT</pubDate>
    <dc:creator>danped</dc:creator>
    <dc:date>2024-11-16T10:05:41Z</dc:date>
    <item>
      <title>Custom business rule using compound join</title>
      <link>https://community.qlik.com/t5/Data-Quality/Custom-business-rule-using-compound-join/m-p/2196915#M155</link>
      <description>Hi,
&lt;BR /&gt;I have a business rule to implement which involves two tables (call them T1 and T2). I want to check some values for records which are related on two columns in the tables (Call them col1 and col2). So in SQL my rule is:
&lt;BR /&gt;
&lt;BR /&gt;Select
&lt;BR /&gt;T1.col1,T1.col2,T2.col1,T2.col2
&lt;BR /&gt;from T1
&lt;BR /&gt;inner join T2 on T1.col1 = T2.col1 and T1.col2 = T2.col2
&lt;BR /&gt;where t1.col3 = t2.col3
&lt;BR /&gt;
&lt;BR /&gt;The problem is I can only configure a single column join in the join condition. If I specify a new row i the join condition it treats this as a new instance of the table and if I specify the additional join in the where clause, the passing rows works correctly but the failing rows is wrong.
&lt;BR /&gt;???
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Dan</description>
      <pubDate>Sat, 16 Nov 2024 10:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Custom-business-rule-using-compound-join/m-p/2196915#M155</guid>
      <dc:creator>danped</dc:creator>
      <dc:date>2024-11-16T10:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom business rule using compound join</title>
      <link>https://community.qlik.com/t5/Data-Quality/Custom-business-rule-using-compound-join/m-p/2196916#M156</link>
      <description>Hi &amp;nbsp; 
&lt;BR /&gt;I have made a testing and got the SQL like this: 
&lt;BR /&gt;SELECT t1.* FROM `tbi`.`customer` &amp;nbsp;t1 &amp;nbsp;JOIN &amp;nbsp;`tbi`.`customer2` &amp;nbsp;t2 &amp;nbsp;ON (t1.`fname`=t2.`fname`) JOIN &amp;nbsp;`tbi`.`customer2` &amp;nbsp;t3 &amp;nbsp;ON (t1.`lname`=t3.`lname`) &amp;nbsp;WHERE (t1.account_num = t2.account_num) 
&lt;BR /&gt;I have consulted to our developers and confirmed that it is impossible to have multiple join condition, we would like you to open a feature request on our 
&lt;A href="https://jira.talendforge.org/secure/Dashboard.jspa?_ga=1.122690699.1610970956.1484286501" target="_blank" rel="nofollow noopener noreferrer"&gt;bugtracker&lt;/A&gt;. 
&lt;BR /&gt;Thanks! 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 14 Feb 2017 06:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Custom-business-rule-using-compound-join/m-p/2196916#M156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-14T06:41:19Z</dc:date>
    </item>
  </channel>
</rss>

