<?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: Stuck with SQL problems in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619023#M1107491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cnt = count is correct. But i think it is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;aggregated&lt;/SPAN&gt; at each level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 13:51:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-25T13:51:56Z</dc:date>
    <item>
      <title>Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619012#M1107480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I have a trouble, and would be really happy if you could help me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, this i my SQL selections from a ODBC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sqlselect.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/55747_sqlselect.JPG.jpg" style="width: 620px; height: 273px;" /&gt;&lt;/P&gt;&lt;P&gt;This works perfect. I make plots of this to see different answ_call_cnt and aband_call_cnt with the different queues. And i make selections with Year, month and day. Nemas problemas!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my Table viewer is quite hard to understand.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="tableviewer.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/55748_tableviewer.JPG.jpg" style="width: 620px; height: 346px;" /&gt;&lt;/P&gt;&lt;P&gt;Because now i would like to import some agent_name from the Agent_logg. See picture below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ccdatabase.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/55750_ccdatabase.JPG.jpg" style="width: 620px; height: 196px;" /&gt;&lt;/P&gt;&lt;P&gt;But i don't get it to work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input would be greats. I can't post a sample file because im on a private license and connected to ODBC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 09:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619012#M1107480</guid>
      <dc:creator />
      <dc:date>2014-03-25T09:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619013#M1107481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't appear to have anything to link the agent_logg_id back to any of your data tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume the Queue_Logg table would contain and advisor id or ref, so you would need to update the queue_logg sql to pull through that, and also the agent_logg table to join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Queue is not enough in your model to pull agent info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 10:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619013#M1107481</guid>
      <dc:creator />
      <dc:date>2014-03-25T10:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619014#M1107482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say the issue is the field &lt;STRONG&gt;date_from&lt;/STRONG&gt; which appears in each table - it is causing sythentic keys in the load script. Is this a common link field between each table? Remember, Qlikview automatically creates joins between tables based on field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 10:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619014#M1107482</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2014-03-25T10:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619015#M1107483</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;In your data model a synthetic keys generated due to same field names like date_from or queue if you want to increase a performance remove any field from any table if not required or simple rename it in that table. And for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;agent_name you have to find the Agent_logg_id field among the different table that available or not then you link it or join with that table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 10:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619015#M1107483</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-03-25T10:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619016#M1107484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="agent_logg_id.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/55767_agent_logg_id.JPG.jpg" style="width: 620px; height: 199px;" /&gt;&lt;/P&gt;&lt;P&gt;I have the Agent_logg_id in the Service_goals table. Where i get my goal_desc and goal_id from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 11:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619016#M1107484</guid>
      <dc:creator />
      <dc:date>2014-03-25T11:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619017#M1107485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="queuelogg.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/55768_queuelogg.JPG.jpg" style="width: 620px; height: 206px;" /&gt;&lt;/P&gt;&lt;P&gt;Here is the Queue_logg table, i have tried different solutions, but can't get it right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you effort and answers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 11:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619017#M1107485</guid>
      <dc:creator />
      <dc:date>2014-03-25T11:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619018#M1107486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but i think i need to have these 2 days_from, because when i make selections in "Year" "Month" "Day" i want the right connections!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 11:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619018#M1107486</guid>
      <dc:creator />
      <dc:date>2014-03-25T11:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619019#M1107487</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;Perhaps you should be joining Queue_logg to Goal_results - like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL .... FROM Goal_Results;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Join &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL .... FROM queue_logg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will correctly link the data between the two tables if the relationship between these two tables is properly described by queue and date_from. If that is not the case, then you will need to bring in enough data to associate the tables correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joining like this will eliminate one table and the syn key from your model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 12:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619019#M1107487</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-25T12:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619020#M1107488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think we have enough info on what the data is. The table Goal_Results looks like it is pre-aggregated data (judging by the _cnt fields = count?), that is one row for each combination of &lt;STRONG&gt;queue&lt;/STRONG&gt; and &lt;STRONG&gt;date_from&lt;/STRONG&gt;, whereas queue_logg could be multiple rows per &lt;STRONG&gt;queue&lt;/STRONG&gt; and &lt;STRONG&gt;date_from&lt;/STRONG&gt; (unless it is also aggregated at that level). Could end up with incorrect aggregation in the front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik, are my assumptions correct?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 12:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619020#M1107488</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2014-03-25T12:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619021#M1107489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's not (IMO) enough data being loaded from the source - and the data that appears above has no direct link back to the agent_logg table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As part of the load script, the agent_logg needs to be pulled in then joined with the agent_logg_id to the respective table, otherwise it's not possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 12:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619021#M1107489</guid>
      <dc:creator />
      <dc:date>2014-03-25T12:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619022#M1107490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are right, can you show me how to do it? Because im a newbie regarding SQL and databases.&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, 25 Mar 2014 13:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619022#M1107490</guid>
      <dc:creator />
      <dc:date>2014-03-25T13:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619023#M1107491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cnt = count is correct. But i think it is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;aggregated&lt;/SPAN&gt; at each level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 13:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619023#M1107491</guid>
      <dc:creator />
      <dc:date>2014-03-25T13:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck with SQL problems</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619024#M1107492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to bring in the view that has the agent_logg_id&amp;nbsp; - once you've loaded that into the QV script - the joins should be quite clear when you look at the other imported data and PK's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just do a Load *, from a SQL Select * query, and you'll see all the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came from a call centre background and know how difficult it is tracking individual advisors to calls in a queue - the issue I had was the queue was measured on a vdn level, and advisors tracked on the skills - best thing though, is to being everything into QV and then disregard what you don't need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to avoid syntheic keys where possible - they only cause issues further down the line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 15:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-with-SQL-problems/m-p/619024#M1107492</guid>
      <dc:creator />
      <dc:date>2014-03-25T15:24:32Z</dc:date>
    </item>
  </channel>
</rss>

