× 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.



Thanks Luis
I just gave myself a dope-slap.
I have done this in the past for other statistics. Why did I not think of that for this

Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Luis Rodriguez
Sent: Thursday, July 19, 2012 10:59 AM
To: Midrange Systems Technical Discussion
Subject: Re: Use SQL to retrieve 2 numerical amounts and the difference between them from one field

Alan,

Just remember that you can wrap/encapsulate your SQL sentence as a view.
This can simplify a lot your table queries. In fact, regarding your post I had created a view with a code similar to Tom's (although using LENGTH in order to accommodate for different values of "xxx/yyy"), but had to get out of the office for a while and when I returned I saw that you already had a response.

Best Regards,

Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.