<?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: SQL script to qlikview scrip in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7729#M792258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks i have few&amp;nbsp; questions&lt;/P&gt;&lt;P&gt;1) Is my syntax correct from SQL to Qlikview?&lt;/P&gt;&lt;P&gt;2)Will be fine even if i haven't used&amp;nbsp; &lt;SPAN lang="EN-GB" style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt; [lead_id] &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;is&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;not&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;null&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt; [talk_sec] &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;0&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2018 09:18:26 GMT</pubDate>
    <dc:creator>mandilicious</dc:creator>
    <dc:date>2018-01-26T09:18:26Z</dc:date>
    <item>
      <title>SQL script to qlikview scrip</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7727#M792255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Champs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;I&amp;nbsp; have below SQL script that i am straggling to convert to qlikview scrip as (Average Handling Time (AHT))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;SELECT&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: fuchsia; font-family: Consolas; font-size: 9.5pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;[talk_sec]&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;)+&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: fuchsia; font-family: Consolas; font-size: 9.5pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;[dispo_sec]&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;))&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;/&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: fuchsia; font-family: Consolas; font-size: 9.5pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;(Phonenumber)&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt; AHT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt; [Campaign_]&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;[dbo]&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;[vicidial_agent_log] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt; [lead_id] &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;is&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;not&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;null&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt; [talk_sec] &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please correct me cause below it is pulling incorrect data.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;dispo_sec&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;talk_sec&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; /&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;phone_number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'hh:mm'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&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/SQL-script-to-qlikview-scrip/m-p/7727#M792255</guid>
      <dc:creator>mandilicious</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script to qlikview scrip</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7728#M792256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;dispo_sec&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;talk_sec&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;phone_number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'hh:mm')) as AHT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN-GB" style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt; len(trim([&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;lead_id]))&amp;gt;0 and &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;[talk_sec] &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 09:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7728#M792256</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2018-01-26T09:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script to qlikview scrip</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7729#M792258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks i have few&amp;nbsp; questions&lt;/P&gt;&lt;P&gt;1) Is my syntax correct from SQL to Qlikview?&lt;/P&gt;&lt;P&gt;2)Will be fine even if i haven't used&amp;nbsp; &lt;SPAN lang="EN-GB" style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt; [lead_id] &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;is&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;not&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;null&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt; [talk_sec] &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;0&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 09:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7729#M792258</guid>
      <dc:creator>mandilicious</dc:creator>
      <dc:date>2018-01-26T09:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script to qlikview scrip</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7730#M792259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) snytax is ok but you caluclated the average and then you dont Need to dvide that with you Count(phone_number) anymore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) it will work even without that where Statement. Note that NULL values doesnt matter for average values. But 0 values will affect your average values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 09:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7730#M792259</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2018-01-26T09:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script to qlikview scrip</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7731#M792262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;log_Today:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"agent_log_id"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"user"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"server_ip"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"event_time"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"lead_id"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"campaign_id"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"pause_epoch"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;phone_number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"pause_sec"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"wait_epoch"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;dispo_sec&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;talk_sec&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AHT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;dispo_sec&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;talk_sec&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;phone_number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'hh:mm') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AHT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"wait_sec"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"talk_epoch"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"talk_sec"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"dispo_epoch"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"dispo_sec"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"user_group"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;comments&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"sub_status"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"dead_epoch"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"dead_sec"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;processed&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;uniqueid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"pause_type"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt; FROM &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Campaign"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;.dbo."_log_Today"&lt;BR /&gt; &lt;BR /&gt; WHERE len(trim(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[lead_id]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;gt;0 and &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[talk_sec]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;0 &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 12:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7731#M792262</guid>
      <dc:creator>mandilicious</dc:creator>
      <dc:date>2018-01-26T12:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script to qlikview scrip</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7732#M792263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must not be a problem here but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;dispo_sec&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;talk_sec&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isn't mandatory the same like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="background: white; color: fuchsia; font-family: Consolas; font-size: 9.5pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;[talk_sec]&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;)+&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="background: white; color: fuchsia; font-family: Consolas; font-size: 9.5pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;[dispo_sec]&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="background: white; color: gray; font-family: Consolas; font-size: 9.5pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if it had correctly worked in SQL I wouldn't change it in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 12:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7732#M792263</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-26T12:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script to qlikview scrip</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7733#M792264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus&lt;/P&gt;&lt;P&gt;If i may ask then which one is correct?&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, 31 Jan 2018 11:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7733#M792264</guid>
      <dc:creator>mandilicious</dc:creator>
      <dc:date>2018-01-31T11:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script to qlikview scrip</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7734#M792266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the context which of the versions is more preferable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If one of the parts of a normal addition isn't a valid number else a string or NULL the result of the calculation will be NULL. In opposite to this a function like sum() will ignore each non-numeric value. Here a simplified example to demonstrate what happens:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load sum(a + b) as F1, sum(a) + sum(b) as F2 inline [&lt;/P&gt;&lt;P&gt;a, b&lt;/P&gt;&lt;P&gt;10, 5&lt;/P&gt;&lt;P&gt;20, x&lt;/P&gt;&lt;P&gt;5, 8&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/192009_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script-to-qlikview-scrip/m-p/7734#M792266</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-31T12:10:14Z</dc:date>
    </item>
  </channel>
</rss>

