Using T-SQL and Microsoft SQL Server I would like to specify the number of decimal digits when I do a division between 2 integer numbers like:
select 1/3
That currently returns 0
. I would like it to return 0,33
.
Something like:
select round(1/3, -2)
But that doesn't work. How can I achieve the desired result?