2. Non-recursive Common Table Expressions
Daniel Bartholomew1
(1)Raleigh, North Carolina, USA
You already got a taste of non-recursive CTEs in the previous chapter. This chapter will expand upon the previous examples and show more of the things you can do with non-recursive CTEs. In this chapter, we’ll cover some common uses of CTEs and finish with how to convert existing queries that use subqueries into queries that use CTEs.
Before We Begin
As with the previous chapter, the examples in this chapter utilize sample data
. In addition to the employees table we used previously, in this chapter ...