math - Oracle Rounding down -


here partial statement. statement works , receive value of 4 instead prefer 3.9 in cases number may not whole number .4,.2,.1 etc. numbers show "0" because oracle rounds up. if remove "round" receive 3.9123458543845474586. there way display 3.9 , .4,.2 etc. without rounding? know got syntax issue. when remove round receive error.

round((total_qty)*((avg_qty/(sum(avg_qty)over(partition id)))/5),0) avg_qty

thanks in advance.

try this,

select round(3.9123458543845474586, 1) round dual;       round ----------       3.9 

for better understanding please refer link.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -