Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
konark
Yak Posting Veteran
60 Posts |
Posted - 2010-02-03 : 12:53:58
|
| I have 2 int columns , of which i need to find the %age example : 4/100 => 25.0I am using a long manipulation , still not giving desired result. can it be tuned.round(isnull ( cast ( Col1 as decimal ( 5,1)) / cast ( Col2 as decimal ( 5,1)) * 100 , 0), 2)Chandragupta Mourya |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-02-03 : 12:56:50
|
quote: Originally posted by konark I have 2 int columns , of which i need to find the %age example : 4/100 => 25.0I am using a long manipulation , still not giving desired result. can it be tuned.round(isnull ( cast ( Col1 as decimal ( 5,1)) / cast ( Col2 as decimal ( 5,1)) * 100 , 0), 2)Chandragupta Mourya
i think this is enoughCol1 *100.0/Col2 |
 |
|
|
|
|
|