SQL Antipatterns by Bill Karwin has an chapter that covers this problem in depth.<p><a href="http:&#x2F;&#x2F;shop.oreilly.com&#x2F;product&#x2F;mobile&#x2F;9781934356555.do" rel="nofollow">http:&#x2F;&#x2F;shop.oreilly.com&#x2F;product&#x2F;mobile&#x2F;9781934356555.do</a>