<?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: RE:Convert to Sql in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061794#M522386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thnx Oza.&amp;nbsp;&amp;nbsp; i will try this code and let u know&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2016 05:53:49 GMT</pubDate>
    <dc:creator>Chanty4u</dc:creator>
    <dc:date>2016-04-06T05:53:49Z</dc:date>
    <item>
      <title>RE:Convert to Sql</title>
      <link>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061788#M522380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have small&amp;nbsp; conversion on&amp;nbsp; Qlikview Expression into&amp;nbsp; SQl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my Qlikview code.&amp;nbsp;&amp;nbsp; I need tis in Sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[USER]=e({&amp;lt;[NEW]={'A','B','C'}&amp;gt;})&amp;gt;}distinct [USER])/count(distinct USER)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061788#M522380</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-04-06T05:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: RE:Convert to Sql</title>
      <link>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061789#M522381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create flag in script for Column New &lt;/P&gt;&lt;P&gt;and use it in Set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;If(Wildmatch(New,'A','B','C'),1,0) as flag&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then your expression became&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Flag={'0'}&amp;gt;}Distinct USER)/Count(Distinct USER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061789#M522381</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-04-06T05:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: RE:Convert to Sql</title>
      <link>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061790#M522382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT (SUM(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;a.&lt;SPAN style="font-size: 13.3333px;"&gt;USERCOUNTE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)/SUM(a.&lt;SPAN style="font-size: 13.3333px;"&gt;TOTALUSER&lt;/SPAN&gt;)) as USERNEW&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM (&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp; COUNT(&lt;SPAN style="font-size: 13.3333px;"&gt;DISTINCT b.USER) as TOTALUSER,&lt;/SPAN&gt;COUNT(SELECT DISTINCT USER &lt;SPAN style="font-size: 13.3333px;"&gt;FROM TABLE &lt;SPAN style="font-size: 13.3333px;"&gt;WHERE USER NOT IN ('A','B','C')&lt;/SPAN&gt;&lt;/SPAN&gt;) as USERCOUNTE&lt;/P&gt;&lt;P&gt;FROM TABLE b&amp;nbsp; )&amp;nbsp; a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061790#M522382</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-06T05:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: RE:Convert to Sql</title>
      <link>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061791#M522383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i need the equivalent sql code&amp;nbsp; for testing&amp;nbsp; in db.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not in Qlivkiew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061791#M522383</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-04-06T05:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: RE:Convert to Sql</title>
      <link>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061792#M522384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select COUNT(distinct b.[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;USER&lt;/SPAN&gt;])/count(distinct a.[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;USER&lt;/SPAN&gt;]) from tablename a,tablenamae b&lt;/P&gt;&lt;P&gt;where b.[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NEW&lt;/SPAN&gt;]=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'A' or &lt;SPAN style="font-size: 13.3333330154419px;"&gt;b.[&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NEW&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;]=&lt;/SPAN&gt;'B' or &lt;SPAN style="font-size: 13.3333330154419px;"&gt;b.[&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NEW&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;]=&lt;/SPAN&gt;'C'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061792#M522384</guid>
      <dc:creator />
      <dc:date>2016-04-06T05:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: RE:Convert to Sql</title>
      <link>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061793#M522385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx Kush.&amp;nbsp;&amp;nbsp; i will try this code and let u know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061793#M522385</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-04-06T05:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: RE:Convert to Sql</title>
      <link>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061794#M522386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thnx Oza.&amp;nbsp;&amp;nbsp; i will try this code and let u know&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061794#M522386</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-04-06T05:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: RE:Convert to Sql</title>
      <link>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061795#M522387</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 below &lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;(select &lt;/P&gt;&lt;P&gt;count(t1.USER)&lt;/P&gt;&lt;P&gt;From table t1 &lt;/P&gt;&lt;P&gt;where NAME NOT IN ('A','B','C')&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;/ count (t2.USER)&lt;/P&gt;&lt;P&gt;From table t2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 06:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RE-Convert-to-Sql/m-p/1061795#M522387</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-04-06T06:39:01Z</dc:date>
    </item>
  </channel>
</rss>

