0

sql after trigger.

i have the following tables in my sql - customers,products,suppliers,distributors,sales and OriginOfProducts. i need to create a trigger for when the product stock is less than one, it should reorder. Can someone please write out the trigger for this scenario. It will mean alot , thanks.

11th May 2017, 9:49 PM
Mogammad Shameer Losper
Mogammad Shameer Losper - avatar
2 odpowiedzi
+ 1
can you create a check constraint for amount in stock column ?
12th May 2017, 2:46 AM
Anibal Lopes
0
Yes you can
12th May 2017, 6:15 AM
Mogammad Shameer Losper
Mogammad Shameer Losper - avatar