CTE In Sql server
what is CTE?what is the Use of it?where we have to use of it.with example.what is advantage of using it.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Riddhi ValechaRank #794 · 2.9K reputationPosted Jul 31, 2014, 12:43 AM EDT
---
http://technet.microsoft.com/en-us/library/ms190766%28v=sql.105%29.aspx
http://blog.sqlauthority.com/2011/05/10/sql-server-common-table-expression-cte-and-few-observation/
Hope these sites help.
Rosi Sreenivasa Reddy137 reputationPosted Aug 1, 2014, 11:41 PM EDT
Rosi Sreenivasa Reddy137 reputationPosted Aug 1, 2014, 11:51 PM EDT
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 11, 2014, 9:17 AM EDT
Refer the links -
http://www.sqlservergeeks.com/articles/sql-server-bi/38/sql-server-%E2%80%93-what-is-common-table-expression-cte
https://www.simple-talk.com/sql/t-sql-programming/sql-server-2005-common-table-expressions/
These links have examples.
It depends, if you want the output as shown in the link, you can use CTE.