<?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 Query with Multiple Datastores ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-with-multiple-datastores/m-p/12276923#M1988377</link>
    <description>&lt;P&gt;I want to delete records in Table_A in Datastore_A, based on a lookup in Table_B in Datastore_B.&lt;/P&gt;
  &lt;P&gt;In MS SQL Server, I can span databases by specifying the database name in the query.&lt;/P&gt;
  &lt;P&gt;In SAP DS, it appears that the query only allows 1 datastore. Is there a way to write a query spanning multiple Datastores ?&lt;/P&gt;
  &lt;P&gt;Something like this&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DELETE FROM Datastore_A.Orders 
WHERE FiscalYear = ( select FiscYEAR  from  Datastore_B.DATES  
	where  (dates - 1 days)  = CAST(CURRENT_TIMESTAMP AS DATE) )&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;
   &lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 20:51:36 GMT</pubDate>
    <dc:creator>dunncrew</dc:creator>
    <dc:date>2020-09-30T20:51:36Z</dc:date>
    <item>
      <title>Query with Multiple Datastores ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-with-multiple-datastores/m-p/12276923#M1988377</link>
      <description>&lt;P&gt;I want to delete records in Table_A in Datastore_A, based on a lookup in Table_B in Datastore_B.&lt;/P&gt;
  &lt;P&gt;In MS SQL Server, I can span databases by specifying the database name in the query.&lt;/P&gt;
  &lt;P&gt;In SAP DS, it appears that the query only allows 1 datastore. Is there a way to write a query spanning multiple Datastores ?&lt;/P&gt;
  &lt;P&gt;Something like this&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DELETE FROM Datastore_A.Orders 
WHERE FiscalYear = ( select FiscYEAR  from  Datastore_B.DATES  
	where  (dates - 1 days)  = CAST(CURRENT_TIMESTAMP AS DATE) )&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;
   &lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 20:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-with-multiple-datastores/m-p/12276923#M1988377</guid>
      <dc:creator>dunncrew</dc:creator>
      <dc:date>2020-09-30T20:51:36Z</dc:date>
    </item>
  </channel>
</rss>

