IT Community - Software Programming, Web Development and Technical Support

Common_Table_Expression in SQL Server

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-25-2008, 06:20 AM
vadivelanshanmugam vadivelanshanmugam is offline
D-Web Trainee
 
Join Date: Jan 2008
Posts: 41
vadivelanshanmugam is on a distinguished road
Default Common_Table_Expression in SQL Server

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 05:25 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0