• A very good point. And something all authors should consider when posting code/scripts. It is important to know where to get the sample database (and which version) on which the discussion is based. The adventureworks database has changed (and will continue to do so) over time to demonstrate the new features of sql server. The scripts in this article will fail with the current (2012) version.