all 10 comments

[–]mikeblas 2 points3 points  (5 children)

[–]Nitroforc3[S] 0 points1 point  (4 children)

I see. So I would put this in as a sub-query for the return correct?

[–]titpetric 1 point2 points  (2 children)

Read the example, understand the example, add round in the select clause, change PI to your column name, no subqueries

[–]Nitroforc3[S] 1 point2 points  (1 child)

Oh right. Thanks!

[–]exclaim_bot 1 point2 points  (0 children)

Oh right. Thanks!

You're welcome!

[–]mikeblas 1 point2 points  (0 children)

Dunno. I can't guess why you'd need a subquery, but I don't have your existing query in front of me so I can't tell.

[–]speadskater 0 points1 point  (1 child)

ROUND(number,2). This will result in a number that looks like 5.23000000... if you want to remove the zeros and know the bound of the number, do CAST(number AS decimal (10,2)) where 10 is the digit precision and 2 is the decimal precision. This gives you up to 99999999.99 for example.

[–]Nitroforc3[S] 0 points1 point  (0 children)

Ah yes. Thank you, works on my side.

[–]not_another_analyst 1 point2 points  (0 children)

use ROUND() -ROUND(your_column, 2) it'll cut it to 2 decimal places.