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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Negate a numeric value?

Status
Not open for further replies.

TimWynne

Programmer
May 27, 2002
3
GB
Is there a sybase function to negate a value? if I have a column of
1
2
3

how can I return?
-1
-2
-3
 
Just subtract the column value from zero ...

select 0-column from table

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top