Hi everyone I am still sort of new to SQL, I have a slight problem and maybe someone can help.
I have researched all about triggers and what I read make sense, but I can't get the answer I need from it for some reason so I will explain what I need to do
I have 2 tables Products
, LabelPrint
In products
there are 5 columns upc, itemcode, description, price, labelprint
In LabelPrint
there are the same columns
What I need is a trigger for when a new item is created or a old item is edited and the column LabelPrint
is modified to =1 for yes
I need the item in question to be copied over to labelprint
table
The label print
table is automatically cleaned of this items after a certain period of time, I just hope someone can give me some help in understanding how I can make this trigger work the way I hope it will
thanks brandon