----------------------------------
SELECT - Single Table - Direct SQL
----------------------------------
SELECT CustomerID, CompanyName, Country, City
FROM Customers
WHERE (Country = 'Germany' AND City = 'Berlin')
OR (Country = 'UK' AND City = 'London')
-------------------------------
SELECT - Single Table - XML SQL
-------------------------------
Germany
Berlin
UK
London
Notes:
1) can be any name, better consistently stick to .
2) can be any name, can use generic or others unique name based on need.
3) can be any name, better stick to default for consistent reason.
4) can be multiple different names like (key1, key2, keyXYZ) but need starts with "key".
5) all columns under same is using AND operator.
6) Between different is using OR operator.
--------------------------------
SELECT - Table Join - Direct SQL
--------------------------------
SELECT C.CustomerID, C.CompanyName, C.Country, C.City, O.OrderID
FROM Customers C, Orders O
WHERE C.Country = 'Germany' AND C.City = 'Berlin'
AND C.CustomerID = O.CustomerID
-----------------------------------------------
SELECT - Table Join - SQL_QUERY with Parameters
-----------------------------------------------
SELECT C.CustomerID, C.CompanyName, C.Country, C.City, O.OrderID
FROM Customers C, Orders O
WHERE C.Country = '$Country$' AND C.City = '$City$'
AND C.CustomerID = O.CustomerID
Germany
Berlin
--------------------------
SELECT - View - Direct SQL
--------------------------
SELECT * FROM "Order Subtotals"
--------------------------
SELECT - View - Direct SQL
--------------------------
------------------------------------------------------------
SELECT - View - Direct SQL with filtering (compareOperation)
------------------------------------------------------------
SELECT * FROM "Order Subtotals"
WHERE Subtotal >= 10000
---------------------------------------------------------
SELECT - View - XML SQL with filtering (compareOperation)
---------------------------------------------------------
10000
-----------------------------------------
SELECT - View - SQL_QUERY with Parameters
-----------------------------------------
SELECT TOP 3 * FROM "Order Subtotals"
WHERE Subtotal >= $Subtotal$
ORDER BY Subtotal DESC
10000
Reference:
https://help.sap.com/docs/integration-suite/sap-integration-suite/jdbc-receiver-adapter
Defining XML Documents for Message Protocol XML SQL Format:
https://help.sap.com/viewer/5cf7d2de571a45cc81f91261668b7361/7.5.4/en-US/2e96fd3f2d14e869e10000000a155106.html
Defining a SELECT Statement
https://help.sap.com/docs/SAP_NETWEAVER_750/5cf7d2de571a45cc81f91261668b7361/447b7171fde93673e10000000a114a6b.html?version=7.5.4