concept department in category sql
appears as: departments, departments

This is an excerpt from Manning's book SQL Server MVP Deep Dives.
By writing iterative code, you’re crippling SQL Server’s performance in two ways at the same time. You not only work around all the optimizations SQL Server has for fast set-based processing, you also effectively prevent the query optimizer from coming up with a faster way to achieve the same results. Tell SQL Server to read employees, and for each employee read the details of his or her department, and that’s exactly what’ll happen. But tell SQL Server that you want results of employees and departments combined, and that’s only one of the options for the query optimizer to consider.
Determine overall strategy— The general approach to a business solution is to develop an overall strategy to the data warehouse, determining how departments interact with each other and developing a high-level plan for how each subject area will be built out. In practice, I find that most companies skip this step. Departments in an organization tend to vary in their readiness for data warehousing, and cooperation from all departments is critical for making this step possible.