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.
This conversation is currently closed to new comments.
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.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Using SQL Triggers to update Tables.
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.