× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Dave

Do the 2 result sets have the same column structure?

What version/release are you on?

If the 2 sets have the same columns, then maybe

select fields1 from files1

union

with (select fields1 from files1) as alias select fileds2 from alias

This'd run the first query twice, unfortunately.

HTH

Vern

At 10:17 AM 9/27/02 -0400, you wrote:
We are trying to use the result set from one SQL Select statement as the
input to a second SQL Select statement.  In the end, we want two result
sets that we can pass back in one Cursor.  The first being the original
Select result set, the second being the result from the second SQL Select.

If anyone has a good example of an SQLRPGLE program that does something
like this, could you please post it on the list?

David Smith


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.