This is a discussion on Common_Table_Expression in SQL Server within the Database Support forums, part of the Web Development category; Common_Table_Expression : This is nothing but a variable used to store the result set temporarily which is derived from the another ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Common_Table_Expression : This is nothing but a variable used to store the result set temporarily which is derived from the another table and defined within the execution scope of the query used to build this CTE. Syntax for CTE: WITH Common_Table_Expression (Column1, ....n) As ( CTE Query Definition ) Example : WITH CTE_Project (Project_ID) As (Select ProjectID From Project) Select * From CTE_Project |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The server rejected one or more recipient addresses. The server response was: 550 5.7 | poornima | ASP and ASP.NET Programming | 7 | 02-29-2008 01:07 AM |
| Copy SQL data structures from one SQL server to another SQL server? | arjkhanna | Server Management | 5 | 11-05-2007 03:57 AM |
| What is a Linked Server in sql server 2005? | Archer | Database Support | 2 | 08-14-2007 04:24 AM |
| How to create and use server side cursors in SQL Server? | oxygen | Database Support | 2 | 08-01-2007 08:54 AM |
| Where are SQL server users names and passwords are stored in sql server? | H2o | Database Support | 2 | 07-19-2007 01:15 AM |