Hi,
I would like to implement a trigger on my tables. My structure is simple. You have a leaf and Branch:
-Table Leafs
id (PK)
branchid (FK)
============
-Table Branch
id (PK)
leafcount (needs to be triggered)
Simple, a branch has many leafs. But when I insert a new leaf, I need the Branch(leafcount) to increment.
Any ideas?