|
Hi All, I have some SQL code in my RPG program that pulls data from two different tables. For example, in TableA I have some records that are in a specific date range. In TableB, I have some records that match the same date range plus and additional parameter (ie: fieldb = 'XX'). I then need to concatenate the results of both of these tables into a single list. So the data would look something like this: Data Results: ========== (TableA) 2005/11/04 11:04am (TableA) 2005/11/04 11:06am (TableB) 2005/11/04 11:07am (TableA) 2005/11/04 11:09am (TableB) 2005/11/04 11:10am Etc.. Would I be better off to bring the select results into an array, sort and display the results, or could I do this through and SQL statement without having to worry about arrays and such? Thanks for your thoughts. Brian. -=-=-=-=-=-=-=-=-=-=-=-=-=- Brian Piotrowski Specialist - I.T. Simcoe Parts Service, Inc. PH: 705-435-7814 FX: 705-435-6746 -=-=-=-=-=-=-=-=-=-=-=-=-=-
As an Amazon Associate we earn from qualifying purchases.
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.