<?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: ABAP CDS select distinct values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-select-distinct-values/m-p/414524#M11115</link>
    <description>&lt;P&gt;You want to restrict the result set of a CDS View to one line (an arbitrary or the first ?).&lt;/P&gt;&lt;P&gt;To my knowledge, CDS DDL does not offer this. But you can use UP TO 1 ROWS when accessing your view with Open SQL.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2017 07:23:29 GMT</pubDate>
    <dc:creator>retired_member</dc:creator>
    <dc:date>2017-03-03T07:23:29Z</dc:date>
    <item>
      <title>ABAP CDS select distinct values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-select-distinct-values/m-p/414523#M11114</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I need a help in ABAP CDS. The want to write a Join or association statment in ABAP CDS. Consider the below table A and B&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/23435-table-a.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/23436-table-b.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I want output to be &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/23437-output.jpg" /&gt;&lt;/P&gt;&lt;P&gt;The input for me is column 1(value 1).&lt;/P&gt;&lt;P&gt;In case of ABAP I could have written 2 select queries and then looped table A and could have read the table B to create final output.&lt;/P&gt;&lt;P&gt;But in case of ABAP CDS is there way to achieve it. Because If I write Join/Association in ABAP CDS with value 1, then my output could be two rows below which is not same as the output mentioned above&lt;/P&gt;&lt;P&gt;1 Fed Makati&lt;/P&gt;&lt;P&gt;1 Fed BGC&lt;/P&gt;&lt;P&gt;Regards Anand&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 04:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-select-distinct-values/m-p/414523#M11114</guid>
      <dc:creator>former_member192842</dc:creator>
      <dc:date>2017-03-03T04:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CDS select distinct values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-select-distinct-values/m-p/414524#M11115</link>
      <description>&lt;P&gt;You want to restrict the result set of a CDS View to one line (an arbitrary or the first ?).&lt;/P&gt;&lt;P&gt;To my knowledge, CDS DDL does not offer this. But you can use UP TO 1 ROWS when accessing your view with Open SQL.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 07:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-select-distinct-values/m-p/414524#M11115</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-03-03T07:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CDS select distinct values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-select-distinct-values/m-p/414525#M11116</link>
      <description>&lt;P&gt;Hi, there are two ways:&lt;/P&gt;
  &lt;P&gt;a) Using a table function cds accessing table A and B through open SQL;&lt;/P&gt;
  &lt;P&gt;b) Creating an inner join between table A and table B on a.column1 = b.column1 where a.column1 = '1' =&amp;gt; output as you created before, then a.column1 , a.column2, max(b.column2) group by a.column1, a.column2&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 09:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-select-distinct-values/m-p/414525#M11116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-01-30T09:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CDS select distinct values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-select-distinct-values/m-p/414526#M11117</link>
      <description>&lt;P&gt;we can use open SQL 'LIMIT' right?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 15:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-select-distinct-values/m-p/414526#M11117</guid>
      <dc:creator>roy_pappachan2</dc:creator>
      <dc:date>2018-02-15T15:14:49Z</dc:date>
    </item>
  </channel>
</rss>

