Hello all...
I have a table that inlcudes a field that represents a percentage value (like 1.23), but the data is presented as 000123 (hope that makes sense). I get the data from a location outside of my office and I have no say in how the data is formatted.
I need to run a query that multiplies one field by this above mentioned field.
Is there a way to convert the value to the way I need it programmatically (in a query) without putting it in a temporary table?
Example:
Table 1 - fields - ID, Amount
Table 2 - fields - Type, Percentage
Table 1 (one row of data) - 1 234
Table 2 (one row of data) - A 000123
I want to multiply the Amount from Table 1 (234) by the Percentage from Table 2 (000123) where the Type from Table 2 is equal to A.
This should be worked out as 234 * 1.23
Thanks for any help.