<?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 sub-query in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sql-sub-query-in-Qlikview/m-p/1554977#M597957</link>
    <description>&lt;P&gt;Use something like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;= {$&amp;lt;PK= {"=ColumnA= ColumnB"}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or if the 2 tables are 1-1 join the tables into a single one and you can create a flag in the script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;SPAN&gt;ColumnA= ColumnB&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= {$&amp;lt;&lt;SPAN&gt;Flag = {1&lt;/SPAN&gt;}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 16:59:34 GMT</pubDate>
    <dc:creator>dplr-rn</dc:creator>
    <dc:date>2019-03-11T16:59:34Z</dc:date>
    <item>
      <title>sql sub-query in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sql-sub-query-in-Qlikview/m-p/1554974#M597956</link>
      <description>Hi All,&lt;BR /&gt;I am new to Qlikview.I am given SQl code based on that,I need to write one expression in qlikv text object.I have two tables (concentated) A&amp;amp;B.I need to show the sum of the amount in table A where (some condition)+sum of amount in table where(column in table B = table A).I have used sum with set expression but don't know how to write (column in table B = table A).Any idea/suggestion?</description>
      <pubDate>Sat, 16 Nov 2024 04:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-sub-query-in-Qlikview/m-p/1554974#M597956</guid>
      <dc:creator>arumugam_siva</dc:creator>
      <dc:date>2024-11-16T04:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: sql sub-query in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sql-sub-query-in-Qlikview/m-p/1554977#M597957</link>
      <description>&lt;P&gt;Use something like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;= {$&amp;lt;PK= {"=ColumnA= ColumnB"}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or if the 2 tables are 1-1 join the tables into a single one and you can create a flag in the script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;SPAN&gt;ColumnA= ColumnB&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= {$&amp;lt;&lt;SPAN&gt;Flag = {1&lt;/SPAN&gt;}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 16:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-sub-query-in-Qlikview/m-p/1554977#M597957</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-03-11T16:59:34Z</dc:date>
    </item>
  </channel>
</rss>

