<?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: join two tables without common key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-tables-without-common-key/m-p/12309375#M1990716</link>
    <description>&lt;P&gt;Hah, &lt;SPAN class="mention-scrubbed"&gt;mateuszadamus&lt;/SPAN&gt; beat me to it. I'll leave my answer here with the link to the documentation... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 11:38:39 GMT</pubDate>
    <dc:creator>joltdx</dc:creator>
    <dc:date>2021-01-26T11:38:39Z</dc:date>
    <item>
      <title>join two tables without common key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-tables-without-common-key/m-p/12309372#M1990713</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;
  &lt;P&gt;I have two different CDS views and I would like to join them. However, they have no common key on which I would like to join them. I would simply like to have the two tables in one CDS view, without changing any of the data or fields. &lt;/P&gt;
  &lt;P&gt;To visualuze my struggle: I have table A and B, and would like to get the code to come to the OUTCOME table:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1875899-expl.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Anyone who can help? &lt;/P&gt;
  &lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 11:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-tables-without-common-key/m-p/12309372#M1990713</guid>
      <dc:creator>nielsvisser98</dc:creator>
      <dc:date>2021-01-26T11:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: join two tables without common key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-tables-without-common-key/m-p/12309373#M1990714</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;nielsvisser98&lt;/SPAN&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT a1 AS a1, a2 AS a2, a3 AS a3, '' AS b1, '' AS b2, '' AS b3
  FROM table_A
UNION
SELECT '' AS a1, '' AS a2, '' AS a3, b1 AS b1, b2 AS b2, b3 AS b3
  FROM table_B&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Kind regards,&lt;/P&gt;Mateusz</description>
      <pubDate>Tue, 26 Jan 2021 11:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-tables-without-common-key/m-p/12309373#M1990714</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-01-26T11:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: join two tables without common key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-tables-without-common-key/m-p/12309374#M1990715</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I believe you should be able to accomplish this with UNION. &lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abencds_f1_union.htm" target="_blank"&gt;Here's the documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The sets you UNION need to have the same structure, but I suppose it would be possible to "fake" that by selecting empty fields as B1, B2 and B3 for the table A select and vice versa.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 11:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-tables-without-common-key/m-p/12309374#M1990715</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-01-26T11:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: join two tables without common key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-tables-without-common-key/m-p/12309375#M1990716</link>
      <description>&lt;P&gt;Hah, &lt;SPAN class="mention-scrubbed"&gt;mateuszadamus&lt;/SPAN&gt; beat me to it. I'll leave my answer here with the link to the documentation... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 11:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-tables-without-common-key/m-p/12309375#M1990716</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-01-26T11:38:39Z</dc:date>
    </item>
  </channel>
</rss>

