Nov 28, 2001 #1 krotha Programmer Joined Nov 5, 2000 Messages 116 Location US Hi I have small question. If I select at my query analyzer select 1030/100 results 10. But I want upto two decimals(10.30) How shall I do. Thanks For your help.
Hi I have small question. If I select at my query analyzer select 1030/100 results 10. But I want upto two decimals(10.30) How shall I do. Thanks For your help.
Nov 28, 2001 #2 balves Programmer Joined Oct 24, 2000 Messages 983 Location US Depending on what you're trying to do: select convert(decimal(4,0),1030) /convert(decimal(4,0),100) or select convert(decimal(6,2), 1030.0 /100.0) Upvote 0 Downvote
Depending on what you're trying to do: select convert(decimal(4,0),1030) /convert(decimal(4,0),100) or select convert(decimal(6,2), 1030.0 /100.0)
Nov 28, 2001 Thread starter #3 krotha Programmer Joined Nov 5, 2000 Messages 116 Location US Thanks It helps. Based on this I will modify my query. Thanks a lot Upvote 0 Downvote