The previous chapter was focused on ensuring that your queries were able to take advantage of the indexes in your database. In this chapter, we’ll be focusing on ensuring that we reduce the resource use of our queries. There are mechanisms with T-SQL that are more likely to use up memory, CPU, and I/O. Focusing on writing our queries in such a way as to reduce resource use not only helps individual queries but reduces the overall load on the system. We’ll examine a number of different techniques ...