• Hi,

    I don't know the term "forward-referenced", sorry.

     

    Today a new article of Srinivas is published under the link,

    http://www.sqlservercentral.com/columnists/sSampath/recursivequeriesinsqlserver2005.asp

    This article summarizes the recursive usage of common table expressions very well with a few good examples.

    I think if we compare CTE and temp tables, temp tables are more flexable. But if do not need the table repeatedly in your codes, you can choose CTE.

    Eralper

    http://www.kodyaz.com