Common Table Expressions (CTE) In SQL 2005
Common Table Expressions (CTE) In SQL 2005
This is one of a good concepts in SQLServer2005. CTE much useful in Temporary Tables or derived tables.A Common Table Expression returns temporary result set from inside a statement.
Some of the most frequent uses of a Common Table Expression include creating tables on the fly inside a nested select, and doing recursive queries.
Common Table Expressions can be used with DML,DDL
we have been using TSQL for this long without Common Table Expressions,
Then Why CTE is Required. Although new to SQL Server, Common Table Expressions are part of ANSI SQL 99, or SQL3. Therefore, if ANSI is important to you, this is a step closer.
It is easy to write a query with Good performance.
Easy to understand with simple structure.
SQL Snippet
0 Response to "Common Table Expressions (CTE) In SQL 2005"
Post a Comment