Chapter 2: Elementary Programming
In this chapter, you’ll find recipes showing several of the basic programming constructs available in T-SQL. The chapter is not a complete tutorial for the language, however. You’ll need to read other books for that. A good tutorial, if you need one that begins with first principles, is Beginning T-SQL by Kathi Kellenberger and Scott Shaw (Apress, 2014).