×
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.
A conversion factor table sounds useful. A rule could be that the conversion
factors use multiplication. (Remember that division is multiplication with a
smaller factor: something / 10 = something * .1)
From, To, Factor
KG, TK, .01
TK, KG, 100
KG, G, 1000
G, KG, .001
Now you look up the conversion factor:
select factor * weight as new_weight
from conversionfactors
where from = 'KG' and to = 'TK'
You could extend this to a user-defined function that accepts the from and
to conversion, and it would output the result.
HTH,
Loyd
2009/2/5 Tomasz Skorża <t.skorza@xxxxxxxxxxx>
Our ERP - JDE World - have an program to convert one unit to other, but
how to do it in S QL statements?
Have you any ide how to use conversion factor from these two files?
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.