<?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 Select count distinct from SAP Hana table in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Select-count-distinct-from-SAP-Hana-table/m-p/1709675#M8228</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following sql&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select&amp;nbsp;&lt;BR /&gt;count(distinct mblnr)&lt;BR /&gt;from mkpf&lt;BR /&gt;inner join mseg on mkpf~mblnr=mseg~mblnr and mkpf~mjahr=mseg~mjahr&lt;BR /&gt;inner join ekko on mseg~ebeln=ekko~ebeln&lt;BR /&gt;where mkpf~vgart='WE'&lt;BR /&gt;and mseg~ebeln in&lt;BR /&gt;(select ebeln&lt;BR /&gt;from rseg&lt;BR /&gt;inner join rbkp on rseg~belnr=rbkp~belnr and rseg~gjahr=rbkp~gjahr&lt;BR /&gt;where rbkp~tcode&amp;lt;&amp;gt;'MR1M');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and does not run. It is running only if you give count(*)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Has anyone how can i write the sql in order to have the distinct results of the field&amp;nbsp;mblnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;thank you in advance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 08:57:44 GMT</pubDate>
    <dc:creator>geogou1973</dc:creator>
    <dc:date>2021-04-02T08:57:44Z</dc:date>
    <item>
      <title>Select count distinct from SAP Hana table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Select-count-distinct-from-SAP-Hana-table/m-p/1709675#M8228</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following sql&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select&amp;nbsp;&lt;BR /&gt;count(distinct mblnr)&lt;BR /&gt;from mkpf&lt;BR /&gt;inner join mseg on mkpf~mblnr=mseg~mblnr and mkpf~mjahr=mseg~mjahr&lt;BR /&gt;inner join ekko on mseg~ebeln=ekko~ebeln&lt;BR /&gt;where mkpf~vgart='WE'&lt;BR /&gt;and mseg~ebeln in&lt;BR /&gt;(select ebeln&lt;BR /&gt;from rseg&lt;BR /&gt;inner join rbkp on rseg~belnr=rbkp~belnr and rseg~gjahr=rbkp~gjahr&lt;BR /&gt;where rbkp~tcode&amp;lt;&amp;gt;'MR1M');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and does not run. It is running only if you give count(*)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Has anyone how can i write the sql in order to have the distinct results of the field&amp;nbsp;mblnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;thank you in advance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Select-count-distinct-from-SAP-Hana-table/m-p/1709675#M8228</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2021-04-02T08:57:44Z</dc:date>
    </item>
  </channel>
</rss>

