I have a rounding length value by contract. I would like to round my data table by this value however I cannot find how to input it dynamically (ie changing 2 in the example below by 5). Is it possible?
Table trading.data18 structure idcontract integer close double
Table contracts structure idcontract integer rounding double
My static query so far
select ROUND(CAST(close AS numeric),2) from trading.data18 limit 10;
