on 05-23-2011 4:05 AM
Dear Expert,
I try to do calculation in sql query, but it will automatically remove the decimal point.
This is my query:
SELECT 719 / 100
And i want a result = 7.19, but its not work. Its return 7.
i did try to use, SELECT ROUND(719/100,2), but its not working too...
Does any one have any idea how to get 7.19
Thanks in advance for any reply.
Regards,
Mat
yes, i have answer already.
select cast(719/(100*1.0)as decimal (16,2))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.