>>>You can use delete trigger on CartContent table.
>>>
>>Thanks, just wanted to make sure, there is no other way. I'll try to write it tomorrow... Would it only need to handle updates, since I set cascading deletes?
>
>There's another way. You can issue UPDATE command on Cart table every time you delete from CartContent table but it doesn't seem like a right way to do that.
This is what I'm going to put in a trigger, e.g. each time I delete from CartContent, I would update Cart.
If it's not broken, fix it until it is.
My Blog