×
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.
I'm working on an SQLRPGLE program. I have a file with the following structure (simplified):
ID (2 alpha)
BAL1 (11.2)
BAL2 (11.2)
BAL3 (11.2)
What I need to do is come up with an SQL statement that will group all of the IDs, and show the sum of BAL1, BAL2, BAL3 fields for each ID:
bb,100.00,200.00,300.00
EX,100.00,200.00,300.00
WA,50.00,0,50.00
I've looked in the "DB2 UDB for AS/400 SQL Programming" online manual, but the examples for "Group By" are GIFs which don't display.
Tom Hightower
Solutions, Inc
http://www.simas.com
------------
If Bill Gates had a dime for every time a Windows box crashed... oh, wait - he does.
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.