Hi All,
When I try to change the data type from string to decimal, it truncated to only zero’s or it converts to scientific notations as shown in the image below.
This is part of the query that I am using :
CASE
WHEN “assumed mode” = ‘FTL’
THEN Cast(Cast((units * shipmentcount * “est. miles” * Carbon_emision * 0.001 * (item_weight0.0005/extendedweight_tons)) As decimal(10,8))AS VARCHAR(8))
else Cast(Cast((units * shipmentcount * “est. miles” * Carbon_emision * 0.001 * item_weight0.0005) As decimal(10,8)) AS VARCHAR(8))
end as CF
When I change the data type to Decimal I am getting this output