Discussion Locked

Using SQL Triggers to update Tables.

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a table called SALE, which is populated using BCP. The SALE table is missing the Retail Price since it is not in the BCPed file and needs to be read in from another table.

The SALE table has an insert trigger that it uses to populate MONTH_SALE. My question is that can I use this trigger to read the Retail Price in and update the SALE table and simultaneously update the MONTH_SALE table also. Please advise. I thank you for your efforts.

2 replies

by amoljpatil

yeap, this is possible. Your insert trigger, u r populating the MONTH_SALE table, after tht you can read the retail price from and write the update sql for SALE & MONTH_SALE table.

This discussion is closed to new replies.