THE SQL Server Blog Spot on the Web

Welcome to - The SQL Server blog spot on the web Sign in | |
in Search

Browse by Tags

All Tags » Transact SQL » constraints   (RSS)
  • Saving the whole team of players or nothing

    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 ...
    Posted to Alexander Kuznetsov (Weblog) by Alexander Kuznetsov on July 15, 2009
Privacy Statement