Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Amount field
Message
De
29/12/2004 14:01:00
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Titre:
Amount field
Divers
Thread ID:
00973030
Message ID:
00973030
Vues:
62
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform