Sign in | Join
Last post 06-19-2008 7:58 AM by su.rameshraj. 3 replies.
Sort Posts: Oldest to newest Newest to oldest
Hi,
In the following query the calculator gives value 3.3 but the query returns 3.0
I need to get the decimal part also. i.e I need to get 3.3 as answer from the query.
select cast(66/20 as decimal(6,2))
Need help.
Thanks
select
or
For displaying single decimal place , try this one
SELECT CAST( (Select CAST(66 AS float)/20) as decimal(6,1))
Thanks a lot
Have a great day