<?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: Comparing 2 SQL's in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883846#M990177</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;You can also try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can try like this joining two tables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Table1&lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EmpID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Name,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Salary AS Salary1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Table1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QUALIFY *;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UNQUALIFY &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;EmpID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EmpID,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Name,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Salary AS Salary2&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Table2;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now in front end you can use below expression to Non match salary employees&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dimension: EmpID&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression: If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salary1 &amp;lt;&amp;gt; Salary2, &lt;/SPAN&gt;Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2015 02:33:54 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-07-16T02:33:54Z</dc:date>
    <item>
      <title>Comparing 2 SQL's</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883843#M990174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;I have two SQL's the 1st one shows a table like this:&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;Employee_ID-----name-----salary&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;1-----------------John-------$1&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;2----------------David-------$1&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;The second table like this:&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;Employee_ID-----name-----salary&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;1------------------John------$2&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;3-----------------Merry------$2&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;Now I run the first SQL, &amp;amp; I use QUALIFY with the second one and I have all the information I need. Then I use an expression like this:&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;If(Emplyee_name = 1.Employee_name, 1.salary)&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;It supposes to show (John------$2)&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;But It shows null. &lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;(1.employee_name or 1.salary are what I get after running the second SQL using Qualify.)&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;Is there a way to compare the two SQL's and having results?&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.701961); font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 21:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883843#M990174</guid>
      <dc:creator />
      <dc:date>2015-07-15T21:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SQL's</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883844#M990175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi meshal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you QUALIFY with the second statement, the second table becomes distinguished:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="93011" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93011_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see the second table gets "2" prefix for each field:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="93012" alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/93012_Capture2.PNG" style="height: 246px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;And in the front end, you should use specific values in order to get your functions to work:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="93014" alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/93014_Capture.PNG" style="height: 180px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the solution is as follows:&lt;/P&gt;&lt;P&gt;put UNQUALIFY [Employee ID];&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/93015_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And then your data model will look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/93016_Capture2.PNG" style="height: 189px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;And finally, in the front end you can do what ever you want to accomplish:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.PNG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/93017_Capture3.PNG" style="height: 239px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 01:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883844#M990175</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-16T01:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SQL's</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883845#M990176</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;You can try like this joining two tables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;EmpID,&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;Salary AS Salary1&lt;/P&gt;&lt;P&gt;FROM Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Left Join(Temp)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;EmpID,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Name,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Salary AS Salary2&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM Table2;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;*,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;If(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Salary1 &amp;lt;&amp;gt; Salary2, 'Match', 'Not Match') AS SalaryMatchFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;RESIDENT Temp;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;DROP TABLE Temp;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Now in front end you can use below expression to Non match salary employees&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Dimension: EmpID&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Expression: Only{&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;SalaryMatchFlag={'&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Not &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Match&lt;/SPAN&gt;'}&lt;/SPAN&gt;&amp;gt;} Name)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 02:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883845#M990176</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-07-16T02:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SQL's</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883846#M990177</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;You can also try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can try like this joining two tables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Table1&lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EmpID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Name,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Salary AS Salary1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Table1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QUALIFY *;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UNQUALIFY &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;EmpID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EmpID,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Name,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Salary AS Salary2&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Table2;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now in front end you can use below expression to Non match salary employees&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dimension: EmpID&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression: If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salary1 &amp;lt;&amp;gt; Salary2, &lt;/SPAN&gt;Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 02:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883846#M990177</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-07-16T02:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SQL's</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883847#M990178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meshal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple example based on the above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH - Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 11:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883847#M990178</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-07-16T11:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SQL's</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883848#M990179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌thank you for this it was helpful. Could i did it without joining the two tables? and could i show the two values for the same employee using qualify or must i join the tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2015 17:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883848#M990179</guid>
      <dc:creator />
      <dc:date>2015-07-18T17:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SQL's</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883849#M990180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EmpID, Name, Salary&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, John, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, David, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUALIFY *;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EmpID, Name, Salary&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, John, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, Merry,2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Model&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93266_Capture.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;STRONG&gt;2.EmpID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;STRONG&gt;=Only({&amp;lt;[2.EmpID] = p(EmpID)&amp;gt;}[2.Salary])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/93267_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2015 18:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-SQL-s/m-p/883849#M990180</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-18T18:04:46Z</dc:date>
    </item>
  </channel>
</rss>

