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 |
|
mavershang
Posting Yak Master
111 Posts |
Posted - 2009-07-08 : 12:36:38
|
| Hi there. Just wandering whether SQL could do something mathmatically like "log10"?Thanks |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2009-07-08 : 12:44:27
|
| select log(100), log10(100)___________________________________________________________________________Causing trouble since 1980Blog: http://weblogs.sqlteam.com/mladenpSpeed up SSMS development: www.ssmstoolspack.com <- version 1.5 out! |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-07-08 : 12:44:47
|
| you can use LOG() functionhttp://doc.ddart.net/mssql/sql70/la-lz_4.htm |
 |
|
|
mavershang
Posting Yak Master
111 Posts |
Posted - 2009-07-08 : 12:45:57
|
| Thanks guys. |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-07-08 : 13:02:10
|
And if there should be no LOG10 function, do it with e, like thisSELECT LOG10(200) AS [10], LOG(200) / LOG(10) AS [e] N 56°04'39.26"E 12°55'05.63" |
 |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2009-07-08 : 13:41:07
|
| The LOG function returns the natural logarithm of a float expression. The LOG10 function returns the base-10 logarithm of a float expression.CODO ERGO SUM |
 |
|
|
|
|
|