<?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: Conversion SQL en Qlik in Francophones</title>
    <link>https://community.qlik.com/t5/Francophones/Conversion-SQL-en-Qlik/m-p/1684190#M15659</link>
    <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;Merci pour votre réponse.&lt;/P&gt;&lt;P&gt;J'ai décomposé&amp;nbsp; en requête très simple pour arriver à mes fins. Et surtout beaucoup bidouiller pour comprendre le fonctionnement de Qlik.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;J'ai maintenant un problème de mise à jour mais je vais ouvrir un nouveau topic pour éviter de tout mélanger.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Mar 2020 15:00:11 GMT</pubDate>
    <dc:creator>JL-97211</dc:creator>
    <dc:date>2020-03-12T15:00:11Z</dc:date>
    <item>
      <title>Conversion SQL en Qlik</title>
      <link>https://community.qlik.com/t5/Francophones/Conversion-SQL-en-Qlik/m-p/1682524#M15653</link>
      <description>&lt;P&gt;&lt;FONT&gt;Bonjour,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Je me confronte tout juste à Qlik et juste je bug déjà ...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;En soit je souhaiterais convertir une chaîne SQL en une chaîne Qlik;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Je n'arrive pas à comprendre la logique de LOAD à chaque fois.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Je travaille à partir de fichier csv&amp;nbsp; car c'est pareil, je n'arrive pas à réaliser une&amp;nbsp;&lt;/FONT&gt;&lt;FONT&gt;connexion MariaDB locale à Qlik.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Voici la chaîne que je souhaiterais traduire.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;id_machine,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(CASE WHEN group_name IS NULL THEN 'Other process' ELSE group_name END) AS GRP,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;app_ram AS RAM_used&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Appli_Use&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LEFT JOIN Applications ON Appli_Use.app_name = Applications.app_name&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;UNION&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;id_machine,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'RAM FREE' AS GRP,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FreePhysicalMemory AS RAM_used&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Machines&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;UNION&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Machines.id_machine,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'RAM LOST' AS GRP,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;TotalVisibleMemorySize - RAM_real AS RAM_LOST&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Machines&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LEFT JOIN(&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;id_machine,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SUM(RAM_used) AS RAM_real&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;id_machine,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(CASE WHEN group_name IS NULL THEN 'Other process' ELSE group_name END) AS GRP,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;app_ram AS RAM_used&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Appli_Use&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LEFT JOIN Applications ON Appli_Use.app_name = Applications.app_name&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UNION&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;id_machine,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'RAM FREE' AS GRP,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FreePhysicalMemory AS RAM_used&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Machines&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;) AS tb_RAM_real_used&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;GROUP BY &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;id_machine&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;) AS tb_temp2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ON&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Machines.id_machine = tb_temp2.id_machine&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;GROUP BY&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;id_machine&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Merci d'avance&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 15:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Conversion-SQL-en-Qlik/m-p/1682524#M15653</guid>
      <dc:creator>JL-97211</dc:creator>
      <dc:date>2020-03-06T15:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion SQL en Qlik</title>
      <link>https://community.qlik.com/t5/Francophones/Conversion-SQL-en-Qlik/m-p/1682947#M15655</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;La notion de UNION n'existe pas. Il est possible de faire des JOIN entre plusieurs requetes mais sans lui indiquer de clé de jointure. Qlik regardera les champs présents dans les requêtes et fera les liaisons dessus.&lt;/P&gt;&lt;P&gt;De même que le CASE n'existe pas, il faut utiliser le IF à la place : if(a=b,Alors,Sinon).&lt;/P&gt;&lt;P&gt;De même que faire une sous-requête dans un FROM n'est pas possible, il faut passer par des Load successif.&lt;/P&gt;&lt;P&gt;Il faut plutôt prendre ça comme un SQL light mais on final, on peux faire de super truc !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 15:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Conversion-SQL-en-Qlik/m-p/1682947#M15655</guid>
      <dc:creator>ddocquoy</dc:creator>
      <dc:date>2020-03-09T15:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion SQL en Qlik</title>
      <link>https://community.qlik.com/t5/Francophones/Conversion-SQL-en-Qlik/m-p/1684190#M15659</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;Merci pour votre réponse.&lt;/P&gt;&lt;P&gt;J'ai décomposé&amp;nbsp; en requête très simple pour arriver à mes fins. Et surtout beaucoup bidouiller pour comprendre le fonctionnement de Qlik.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;J'ai maintenant un problème de mise à jour mais je vais ouvrir un nouveau topic pour éviter de tout mélanger.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 15:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Conversion-SQL-en-Qlik/m-p/1684190#M15659</guid>
      <dc:creator>JL-97211</dc:creator>
      <dc:date>2020-03-12T15:00:11Z</dc:date>
    </item>
  </channel>
</rss>

