Updatable common table expressions in sql server   Part 50

Updatable common table expressions in sql server Part 50

C#, SQL Server, WCF, MVC and ASP .NET video tutorials for beginners
http://www.youtube.com/user/kudvenkat/playlists

In this video we will learn if it is possible to update a CTE. So in short if,
1. A CTE is based on a single base table, then the UPDATE suceeds and works as expected.
2. A CTE is based on more than one base table, and if the UPDATE affects multiple base tables, the update is not allowed and the statement terminates with an error.
3. A CTE is based on more than one base table, and if the UPDATE affects only one base table, the UPDATE succeeds(but not as expected always)

Text Version of this video
http://csharp-video-tutorials.blogspot.com/2012/09/updatable-cte-part-50.html

Complete sql server video tutorial series

Get Paid Taking Pictures
Share