Connecting Tech Pros Worldwide Forums | Help | Site Map

Table Automatically Populating with Data from another table

Newbie
 
Join Date: Nov 2008
Posts: 8
#1: Nov 9 '08
So I am working on this project, where I have an ITEM_PURCHASE table and an WAREHOUSE table I want users to be able to input data into the ITEM_PURCHASE table thru a form and the WAREHOUSE table will automatically populate from certain fields in ITEM_PURCHASE. In this scenario should I use a trigger or stored procedure? Can someone provide the SQL code to get me started? Can someone help me out here, it will be greatly appreciated.

Thanks
ck9663's Avatar
Expert
 
Join Date: Jun 2007
Posts: 1,925
#2: Nov 11 '08

re: Table Automatically Populating with Data from another table


Trigger would be better for this one. Just use transactions to ensure consistency.

-- CK
Reply