Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Amount field
Message
From
29/12/2004 14:01:00
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Database management
Title:
Amount field
Miscellaneous
Thread ID:
00973030
Message ID:
00973030
Views:
63
Hello UT,

I have a transaction table which contains two fields called transactiontype
and amount.
When doing updates and Inserts I would like to automatically change the amount to negative if the transactiontype field is 1 (Payments).
Does anybody know what is the best aproach to do this.
I was thinking about triggers.
Any example?

Thanks,
Sergio
Next
Reply
Map
View

Click here to load this message in the networking platform