<?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 help in converting SQL OR condition in QV script joins in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-in-converting-SQL-OR-condition-in-QV-script-joins/m-p/52770#M780455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geeks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below requirement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose we have 4 tables A, B,C,D &lt;/P&gt;&lt;P&gt;and I have below SQL query i want convert this query in QV kindly help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in below SQL query i am not able to write QV logic for ((A.col2=D.col2) or (B.col2 is null))&amp;nbsp; or condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;select * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from table A left join table B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on&amp;nbsp; A.col1=B.col2 &lt;/P&gt;&lt;P&gt;left join C&lt;/P&gt;&lt;P&gt;on A.col1=C.col1&lt;/P&gt;&lt;P&gt;left join D &lt;/P&gt;&lt;P&gt;on&lt;/P&gt;&lt;P&gt;A.col1 =D.col1 &lt;/P&gt;&lt;P&gt;and ((A.col2=D.col2) or (B.col2 is null)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ankita Singhal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>ankitasinghal</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>help in converting SQL OR condition in QV script joins</title>
      <link>https://community.qlik.com/t5/QlikView/help-in-converting-SQL-OR-condition-in-QV-script-joins/m-p/52770#M780455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geeks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below requirement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose we have 4 tables A, B,C,D &lt;/P&gt;&lt;P&gt;and I have below SQL query i want convert this query in QV kindly help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in below SQL query i am not able to write QV logic for ((A.col2=D.col2) or (B.col2 is null))&amp;nbsp; or condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;select * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from table A left join table B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on&amp;nbsp; A.col1=B.col2 &lt;/P&gt;&lt;P&gt;left join C&lt;/P&gt;&lt;P&gt;on A.col1=C.col1&lt;/P&gt;&lt;P&gt;left join D &lt;/P&gt;&lt;P&gt;on&lt;/P&gt;&lt;P&gt;A.col1 =D.col1 &lt;/P&gt;&lt;P&gt;and ((A.col2=D.col2) or (B.col2 is null)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ankita Singhal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-in-converting-SQL-OR-condition-in-QV-script-joins/m-p/52770#M780455</guid>
      <dc:creator>ankitasinghal</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: help in converting SQL OR condition in QV script joins</title>
      <link>https://community.qlik.com/t5/QlikView/help-in-converting-SQL-OR-condition-in-QV-script-joins/m-p/52771#M780456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to make 4 tables in excel by taking some sample data.&lt;/P&gt;&lt;P&gt;Load these table into qlikview and try to join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-in-converting-SQL-OR-condition-in-QV-script-joins/m-p/52771#M780456</guid>
      <dc:creator>tripatirao</dc:creator>
      <dc:date>2018-04-04T09:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: help in converting SQL OR condition in QV script joins</title>
      <link>https://community.qlik.com/t5/QlikView/help-in-converting-SQL-OR-condition-in-QV-script-joins/m-p/52772#M780457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can easily achieve this with the preceding load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just give the same name to the fields&amp;nbsp; to join the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need proper solution please attach the sample data and your required o/p. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-in-converting-SQL-OR-condition-in-QV-script-joins/m-p/52772#M780457</guid>
      <dc:creator>chinnuchinni</dc:creator>
      <dc:date>2018-04-04T09:44:25Z</dc:date>
    </item>
  </channel>
</rss>

