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!

SQL STATEMENT 1

Status
Not open for further replies.

BRADENSTOKE

Programmer
Jan 2, 2003
24
GB
How do I raise a number to a power in an SQL statement?
ie if DMN is a field with values of 1, 2 etc
I want to say FIELDNAME*(DMN-1^10) Frank.
 
Thanks Smin, I must be doing something wrong.
My statement is now (in part)
SELECT LPLI.LGTENR,TESTPR*POWER(LPLI.LGPDIM-1,10 ), etc
but I get the error "[IBM][Client Access Express ODBC Driver (32-Bit)[DB2/400 SQL]SQL0402 -- Use Not Valid"
Any Clues ?
As you can see from the error message, I am using AS400 Client Access.
Best regards. Frank.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top