Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To the Power of in MSDE "^"

Status
Not open for further replies.

dantheman688

Programmer
Apr 24, 2007
1
GB
Afternoon all,
I'm having great difficultly getting a calculation to work in MSDE.
The problem is with with the mathimatical power to known in SQL as ^

If in excel you do =10^2 you get 100
If in MSDE you do Select 10^2 you get 8

What am I doing wrong?
 
Use the Power function.

Code:
[COLOR=blue]Select[/color] [COLOR=#FF00FF]Power[/color](10,2), [COLOR=#FF00FF]Power[/color](2, 8)

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
The [!]^[/!] is a bitwise exclusive or function in SQLServer/MSDE.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top