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



Friday greetings,

I know I've done this before and don't know why I'm pulling a blank.

I'm trying to update a column in a file with the result of a conversion to character of the result of a division from another table.

Cutting out the irrelevant parts, it's roughly like this:

*select tab, total1 / total2 from FWK where tab = 'FUL' ;*

i've tried several things, starting with this:

*select tab, decimal( 100 * total1 / total2, 5, 2) from FWK where tab = 'FUL' ;*

I'm trying to tease out the percentage value.

In this case, the values are total1 = 19 and total2 = 23.

I should get 82.60 or 82.61 but nyet, all I get is 82.00.

--Alan Cassidy


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.