SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 power in sql server
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

saurabhjj
Starting Member

India
13 Posts

Posted - 10/01/2007 :  14:12:57  Show Profile  Reply with Quote
can any one please let me know how do i calculate power of a number in sql server

eg. 3 to the power of 2 shuld give me 9

Edited by - saurabhjj on 10/01/2007 14:43:06

tkizer
Almighty SQL Goddess

USA
36823 Posts

Posted - 10/01/2007 :  14:15:16  Show Profile  Visit tkizer's Homepage  Reply with Quote
Check out the POWER function in BOL.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
36823 Posts

Posted - 10/01/2007 :  14:58:34  Show Profile  Visit tkizer's Homepage  Reply with Quote
I get 9 when I use the POWER function, not sure why you edited your post with that information. Have you looked up POWER in BOL as suggested?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

Kristen
Test

United Kingdom
22403 Posts

Posted - 10/01/2007 :  15:08:36  Show Profile  Reply with Quote
The patience of Job ...
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
36823 Posts

Posted - 10/01/2007 :  15:14:09  Show Profile  Visit tkizer's Homepage  Reply with Quote
I'm not familiar with the word "patience".

His edit was 30 minutes after my post though.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

Kristen
Test

United Kingdom
22403 Posts

Posted - 10/01/2007 :  15:19:19  Show Profile  Reply with Quote
Yeah, I saw that too ... and wondered whether BoL had been read ... Ho!Hum!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000