<?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: Group by in Español</title>
    <link>https://community.qlik.com/t5/Espa%C3%B1ol/Group-by/m-p/490738#M2885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Si solo quisieras tener el maximo sin los demas campor seria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load sscc, cod_interno, sscc_origen, cantidad;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;SELECT sscc, cod_interno, sscc_origen, max(cantidad) cantidad&lt;/P&gt;&lt;P&gt;From Prueba.dbo.detalle_palets&lt;/P&gt;&lt;P&gt;Group by sscc, cod_interno, sscc_origen;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debes tomar en cuenta que si los campo sscc y sscc_origen no forman el grupo con cod_interno, pues tienes que hacerlo en dos pasos, primero eligen max(cantidad) y luego lo unes con los demas campos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Sep 2013 17:23:47 GMT</pubDate>
    <dc:creator>jolivares</dc:creator>
    <dc:date>2013-09-28T17:23:47Z</dc:date>
    <item>
      <title>Group by</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/Group-by/m-p/490737#M2884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Buenas a todos;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tengo una tabla con la siguiente estructura:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sscc&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;cod_interno&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;sscc_origen&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;cantidad&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;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;select&amp;nbsp; *&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;FROM&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;Prueba.dbo.detalle_palets&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;y quisieraobtener una tabla donde me cogiera el valor MAXIMO del campo CANTIDAD para la variable &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cod_interno.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;STRONG style=": ; color: #800000; font-size: 8pt;"&gt;Como podría hacerlo a través de script????&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 13:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/Group-by/m-p/490737#M2884</guid>
      <dc:creator>carlosac</dc:creator>
      <dc:date>2013-09-28T13:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Group by</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/Group-by/m-p/490738#M2885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Si solo quisieras tener el maximo sin los demas campor seria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load sscc, cod_interno, sscc_origen, cantidad;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;SELECT sscc, cod_interno, sscc_origen, max(cantidad) cantidad&lt;/P&gt;&lt;P&gt;From Prueba.dbo.detalle_palets&lt;/P&gt;&lt;P&gt;Group by sscc, cod_interno, sscc_origen;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debes tomar en cuenta que si los campo sscc y sscc_origen no forman el grupo con cod_interno, pues tienes que hacerlo en dos pasos, primero eligen max(cantidad) y luego lo unes con los demas campos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 17:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/Group-by/m-p/490738#M2885</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2013-09-28T17:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Group by</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/Group-by/m-p/490739#M2886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Muchas gracias Juan, me ha servido mucho&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 18:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/Group-by/m-p/490739#M2886</guid>
      <dc:creator>carlosac</dc:creator>
      <dc:date>2013-09-28T18:45:07Z</dc:date>
    </item>
  </channel>
</rss>

