|
Mike,
Try using common table expressions;
WITH (SQL SELECT) AS TABLE1 NAME,...
SELECT ... FROM TABLE1, ETC.
See the SQL reference V5.3 pages 379-380
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/db2/rbafzmst
.pdf for very brief documentation or see Robs message:
http://archive.midrange.com/rpg400-l/200509/msg00289.html.
Thank you,
Matt Tyler
WinCo Foods, LLC
mattt@xxxxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.