Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert into negative number

user517674Nov 9 2006 — edited Nov 9 2006
All,
I have an requirement where I have to convert an number into _ve number based on another field in the table.

Lets say my inputs are:

A B
1 21
-2 31
3 41
-1 51
4 61
5 71
-6 81

My output should be

A B
1 21
-2 -31
3 41
-1 -51
4 61
5 71
-6 -81

So A decides whether my output should be positive or negative.

Please let me know...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2006
Added on Nov 9 2006
4 comments
1,699 views