we have two tables table1 have three cols named (itemid int,itemname text,qty int)
and contain data (1,'pepsi',100)
and we have another table "table2" which have three cols named (orderid int,itemid int,qty int)
i want to create trigger(inserted) on table2 and when i insert values in table 2 i.e orderid , itemid and qty now suppose i insert qty 2
then the table1 quantity automatically become 98 through trigger.
please help me.
regards
Muzammil.A.Khan