Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Query with Multiple Datastores ?

dunncrew
Participant
0 Likes
431
  • SAP Managed Tags

I want to delete records in Table_A in Datastore_A, based on a lookup in Table_B in Datastore_B.

In MS SQL Server, I can span databases by specifying the database name in the query.

In SAP DS, it appears that the query only allows 1 datastore. Is there a way to write a query spanning multiple Datastores ?

Something like this

DELETE FROM Datastore_A.Orders 
WHERE FiscalYear = ( select FiscYEAR  from  Datastore_B.DATES  
	where  (dates - 1 days)  = CAST(CURRENT_TIMESTAMP AS DATE) )

0 REPLIES 0