All Tags »
Transact SQL »
constraints »
Business rules (RSS)
Sorry, but there are no more tags available to filter with.
-
Suppose that you need to store teams of players, and you must enforce the following business rule: each team must consist of exactly two players. I will demonstrate how you can use constraints to implement this rule. I haven't used this approach in production yet, but I wanted to share an interesting idea. Of course we typically use triggers or ...