<?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: Weired behaviour with SQL script in script editor in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weired-behaviour-with-SQL-script-in-script-editor/m-p/1205833#M873682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this from load statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from source&lt;/P&gt;&lt;P&gt;Where&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-size: 28.6924px;"&gt; s.reviewer &amp;lt;&amp;gt; 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select s.simulation_id,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.phase_id,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.reviewee as user_id,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; us.name,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.sim_action_id,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sa.title as Action_name,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.reviewer,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.score_option_id,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; so.value&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; from score s,score_option so,sim_action sa,user us where&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; s.score_option_id = so.score_option_id&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; and s.sim_action_id = sa.sim_action_id&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and s.reviewee=us.user_id and s.score_option_id NOT IN (8,7)&lt;STRONG style="font-family: inherit; font-style: inherit; font-size: 28.6924px;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2016 00:01:22 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2016-11-03T00:01:22Z</dc:date>
    <item>
      <title>Weired behaviour with SQL script in script editor</title>
      <link>https://community.qlik.com/t5/QlikView/Weired-behaviour-with-SQL-script-in-script-editor/m-p/1205830#M873676</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;Previously in my dashboard, I used the below script&lt;/P&gt;&lt;P&gt;Score:&lt;/P&gt;&lt;P&gt;SQL select s.simulation_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.phase_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.reviewee as user_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; us.name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.sim_action_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sa.title as Action_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.reviewer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.score_option_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; so.value&lt;/P&gt;&lt;P&gt;&amp;nbsp; from score s,score_option so,sim_action sa,user us where&lt;/P&gt;&lt;P&gt;&amp;nbsp; s.score_option_id = so.score_option_id&lt;/P&gt;&lt;P&gt;&amp;nbsp; and s.sim_action_id = sa.sim_action_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and s.reviewee=us.user_id and s.score_option_id NOT IN (8,7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now based on requirement I just added another condition to my where clause in the above query, which looks like as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select s.simulation_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.phase_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.reviewee as user_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; us.name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.sim_action_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sa.title as Action_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.reviewer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.score_option_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; so.value&lt;/P&gt;&lt;P&gt;&amp;nbsp; from score s,score_option so,sim_action sa,user us where&lt;/P&gt;&lt;P&gt;&amp;nbsp; s.score_option_id = so.score_option_id&lt;/P&gt;&lt;P&gt;&amp;nbsp; and s.sim_action_id = sa.sim_action_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and s.reviewee=us.user_id and s.score_option_id NOT IN (8,7)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and s.reviewer &amp;lt;&amp;gt; 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and removed the first query, I reloaded the script but it is sill giving the same result as first one (including reviewer id&amp;nbsp; = 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MySQL is returning the perfect data when I execute the query in MySQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone explain why this is happening? What is the solution for this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&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/Weired-behaviour-with-SQL-script-in-script-editor/m-p/1205830#M873676</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Weired behaviour with SQL script in script editor</title>
      <link>https://community.qlik.com/t5/QlikView/Weired-behaviour-with-SQL-script-in-script-editor/m-p/1205831#M873677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;are you sure there isn't other table you load the userid 1&lt;/P&gt;&lt;P&gt;if you load the query in a new model as a lone table , those it work properly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 20:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weired-behaviour-with-SQL-script-in-script-editor/m-p/1205831#M873677</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2016-11-02T20:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Weired behaviour with SQL script in script editor</title>
      <link>https://community.qlik.com/t5/QlikView/Weired-behaviour-with-SQL-script-in-script-editor/m-p/1205832#M873678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not getting your point exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I figured it out, the problem is, if two tables have same column names, then qlikview is not concentrating on any conditions which I mentioned in where clause, it is just giving the same result for those 2 tables. Do you encounter any of these type of problems ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 21:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weired-behaviour-with-SQL-script-in-script-editor/m-p/1205832#M873678</guid>
      <dc:creator />
      <dc:date>2016-11-02T21:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Weired behaviour with SQL script in script editor</title>
      <link>https://community.qlik.com/t5/QlikView/Weired-behaviour-with-SQL-script-in-script-editor/m-p/1205833#M873682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this from load statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from source&lt;/P&gt;&lt;P&gt;Where&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-size: 28.6924px;"&gt; s.reviewer &amp;lt;&amp;gt; 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select s.simulation_id,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.phase_id,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.reviewee as user_id,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; us.name,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.sim_action_id,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sa.title as Action_name,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.reviewer,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.score_option_id,&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; so.value&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; from score s,score_option so,sim_action sa,user us where&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; s.score_option_id = so.score_option_id&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; and s.sim_action_id = sa.sim_action_id&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and s.reviewee=us.user_id and s.score_option_id NOT IN (8,7)&lt;STRONG style="font-family: inherit; font-style: inherit; font-size: 28.6924px;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 00:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weired-behaviour-with-SQL-script-in-script-editor/m-p/1205833#M873682</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-11-03T00:01:22Z</dc:date>
    </item>
  </channel>
</rss>

