openesb-components/driver-tests/sqlse/db2/SqlSE1602_DB2
pymma 8aeb7bc8d3 Imported from svn by Bitbucket 2012-11-08 17:12:01 +01:00
..
SubQueryJbi Imported from svn by Bitbucket 2012-11-08 17:12:01 +01:00
SubQuerySql Imported from svn by Bitbucket 2012-11-08 17:12:01 +01:00
readme.txt Imported from svn by Bitbucket 2012-11-08 17:12:01 +01:00

readme.txt

execute subquery on drivertest_emp
Query:

SELECT * FROM drivertest_emp WHERE deptid = (SELECT MAX(deptid) FROM drivertest_dept)

output:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://com.sun.jbi/sqlse/sqlseengine">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
  <SubQueryResponse xmlns="http://com.sun.jbi/sqlse/sqlseengine">
    <EMPID>3</EMPID>
    <ENAME>kerry</ENAME>
    <DEPTID>3</DEPTID>
  </SubQueryResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>