<?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: How to write sql query in EditScript ?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823676#M1027313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select count(item1) from .....&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will give you a grand total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Pivot table will do a group by on the dimensions that you use in the pivot table - so if you have any dimensions at all in the pivot (which I think you must have) you should get a different result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 21:41:15 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-06-25T21:41:15Z</dc:date>
    <item>
      <title>How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823648#M1027283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I have 3 columns say:&amp;nbsp; Item1 , Item2 , Item3. Now i have to count their numbers by writing SqlQueries.&lt;/P&gt;&lt;P&gt;In expression i have used Count(Item1Id), COunt(Item2Id) , Count(Item3Id).&lt;/P&gt;&lt;P&gt;In Script window how can i write the same in Sql query form?? Because if i write:&lt;/P&gt;&lt;P&gt;SQL Select count(Item1ID) from abc ; but what do i write in LOAD statement above it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tHanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 14:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823648#M1027283</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-03T14:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823649#M1027284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD 'Item1' As Item, NCount;&lt;/P&gt;&lt;P&gt;SQL &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SQL Select count(Item1ID) As NCount from abc; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 14:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823649#M1027284</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-03-03T14:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823650#M1027285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one SQL too many &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823650#M1027285</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-03-03T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823651#M1027286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Thankx but i have to select all coulmns and have to count as well. &lt;/P&gt;&lt;P&gt;Can i write:&lt;/P&gt;&lt;P&gt;SQL Select * , Cout(Item1) &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f6f6f6;"&gt;As NCount from abc;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823651#M1027286</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-03T15:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823652#M1027287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD *; &lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SQL SELECT...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823652#M1027287</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-03-03T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823653#M1027288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOL, You know Ioannis, as always... two better than one! XD&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Just joking!)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823653#M1027288</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-03-03T15:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823654#M1027289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;will not work unless you specify a group by clause as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823654#M1027289</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-03-03T15:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823655#M1027290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not believe you can as Count is a Aggragation function: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you can do the following: &lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Select &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Item1 , &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item1id,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Item2 , &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item2id&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;From abc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Item1 ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Item1id) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Resident &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Temp&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Group by &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Item1; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823655#M1027290</guid>
      <dc:creator />
      <dc:date>2015-03-03T15:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823656#M1027291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which database are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;SQL Select * , &lt;STRONG&gt;Count(Item1) Over()&lt;/STRONG&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #f6f6f6;"&gt;As NCount from abc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #f6f6f6;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;SQL Select * , (Select &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;Count(Item1) From abc)&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-style: inherit; font-weight: inherit; background-color: #f6f6f6;"&gt;As NCount from abc;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823656#M1027291</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-03T15:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823657#M1027292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;It is giving me error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823657#M1027292</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-03T15:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823658#M1027293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Thanx first option works. But what does Over() means? and I am getting incorrect number of counts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823658#M1027293</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-03T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823659#M1027295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tested your SQL sentence?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The prefix "LOAD *;" before your SQL sentence just loads all the fields of your SQL Query to the Qlik table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823659#M1027295</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-03-03T15:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823660#M1027297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I ahve used following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;SQL Select * , &lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Count(Item1) Over()&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;As NCount from abc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;But it is giving me wrong count as compare to same count in pivot table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Plz Guide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823660#M1027297</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-03T15:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823661#M1027298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count is an aggregation function, therefore it should be followed by a group by.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select Name, Count(ID) from abc group by Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will return the count of ID for each Name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823661#M1027298</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2015-03-03T15:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823662#M1027299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As others members pointed out, if you use an aggregation function as "count" you must use a group by clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, to load field1, field2, field3, field4, and count field5 you would write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT Field1, Field2, Field3, Field4, Count(Field5)&amp;nbsp; As NCount from ABC group by Field1, Field2, Field3, Field4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823662#M1027299</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-03-03T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823663#M1027300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count() Over() - Analytical function which operate on the group of rows defined by the contents of the Over clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You dont need group by for Analytical function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count from these two sqls will be same&lt;/P&gt;&lt;P&gt;Select Count(Item1) From abc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Select Field1,Field2,Count(Item1) Over() From abc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 16:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823663#M1027300</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-03T16:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823664#M1027301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ,&lt;/P&gt;&lt;P&gt;Thanx but let me tell you wat i am doing :&lt;/P&gt;&lt;P&gt;1: i have loaded data from database.&lt;/P&gt;&lt;P&gt;2: i have a pivot table and in that i have to show count of item1, item2&lt;/P&gt;&lt;P&gt;and item3.&lt;/P&gt;&lt;P&gt;3: so i used expreesion count(item1) and same for item2 and item3.&lt;/P&gt;&lt;P&gt;4: the count are shown in pivot table as per region wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,&lt;/P&gt;&lt;P&gt;I want to confirm that same count should come if i execute sql query in&lt;/P&gt;&lt;P&gt;database. But when i executing;&lt;/P&gt;&lt;P&gt;Select count(item1) from....  , it is giving me wrong output as compared to&lt;/P&gt;&lt;P&gt;pivot table expression output. Plz tell wat to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823664#M1027301</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-03T17:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823665#M1027302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ,&lt;/P&gt;&lt;P&gt;Thanx but let me tell you wat i am doing :&lt;/P&gt;&lt;P&gt;1: i have loaded data from database.&lt;/P&gt;&lt;P&gt;2: i have a pivot table and in that i have to show count of item1, item2&lt;/P&gt;&lt;P&gt;and item3.&lt;/P&gt;&lt;P&gt;3: so i used expreesion count(item1) and same for item2 and item3.&lt;/P&gt;&lt;P&gt;4: the count are shown in pivot table as per region wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,&lt;/P&gt;&lt;P&gt;I want to confirm that same count should come if i execute sql query in&lt;/P&gt;&lt;P&gt;database. But when i executing;&lt;/P&gt;&lt;P&gt;Select count(item1) from....  , it is giving me wrong output as compared to&lt;/P&gt;&lt;P&gt;pivot table expression output. Plz tell wat to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;On 03-Mar-2015 8:35 PM, "ioannis giakoumakis" &amp;lt;qcwebmaster@qlikview.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:20:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823665#M1027302</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-03T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823666#M1027303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ,&lt;/P&gt;&lt;P&gt;Thanx but let me tell you wat i am doing :&lt;/P&gt;&lt;P&gt;1: i have loaded data from database.&lt;/P&gt;&lt;P&gt;2: i have a pivot table and in that i have to show count of item1, item2&lt;/P&gt;&lt;P&gt;and item3.&lt;/P&gt;&lt;P&gt;3: so i used expreesion count(item1) and same for item2 and item3.&lt;/P&gt;&lt;P&gt;4: the count are shown in pivot table as per region wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,&lt;/P&gt;&lt;P&gt;I want to confirm that same count should come if i execute sql query in&lt;/P&gt;&lt;P&gt;database. But when i executing;&lt;/P&gt;&lt;P&gt;Select count(item1) from....  , it is giving me wrong output as compared to&lt;/P&gt;&lt;P&gt;pivot table expression output. Plz tell wat to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823666#M1027303</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-03T17:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to write sql query in EditScript ??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823667#M1027304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ,&lt;/P&gt;&lt;P&gt;Thanx but let me tell you wat i am doing :&lt;/P&gt;&lt;P&gt;1: i have loaded data from database.&lt;/P&gt;&lt;P&gt;2: i have a pivot table and in that i have to show count of item1, item2&lt;/P&gt;&lt;P&gt;and item3.&lt;/P&gt;&lt;P&gt;3: so i used expreesion count(item1) and same for item2 and item3.&lt;/P&gt;&lt;P&gt;4: the count are shown in pivot table as per region wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,&lt;/P&gt;&lt;P&gt;I want to confirm that same count should come if i execute sql query in&lt;/P&gt;&lt;P&gt;database. But when i executing;&lt;/P&gt;&lt;P&gt;Select count(item1) from....  , it is giving me wrong output as compared to&lt;/P&gt;&lt;P&gt;pivot table expression output. Plz tell wat to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-sql-query-in-EditScript/m-p/823667#M1027304</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-03T17:23:09Z</dc:date>
    </item>
  </channel>
</rss>

