April 2006
Intermediate to advanced
640 pages
16h 46m
English
So far, I’ve covered scalar and multi-valued subqueries. This section deals with table subqueries, which are known as Table Expressions. In this chapter, I’ll discuss derived tables and the new common table expressions (CTE).
For information about the two other types of table expressions—views and user-defined functions (UDF)—please refer to Inside Microsoft SQL Server 2005: T-SQL Programming (Microsoft Press, 2006).
A derived table is a table expression—that is, a virtual result table derived from a query expression. A derived table appears in the FROM clause of a query like any other table. The scope of existence ...
Read now
Unlock full access