SQL With - How to Use the With (CTE) Statement in SQL Server - Quick Tips Ep35

Published: 22 October 2012
on channel: Joey Blue
65,662
810

SQL With - How to Use the WITH Statement/Common Table Expressions (CTE) in SQL Server - SQL Training Online

In this video, I introduce the SQL WITH statement (also known as Common Table Expressions or CTE) and show you the basics of how it is used.

The SQL WITH Statement is called Common Table Expressions or CTE for short in SQL Server

The SQL WITH statement is used for 2 primary reasons:
1) To move Subqueries to make the SQL easier to read.
2) To do recursive queries in SQL

TABLE OF CONTENTS
00:00 - Intro
01:40 - CTE Example
04:10 - CTE with Inner Join

READ THE ORIGINAL ARTICLE WITH SQL SCRIPTS HERE
http://www.sqltrainingonline.com/

YOUTUBE NEWS UPDATES
   / sqltrainingonline  

VISIT SQLTRAININGONLINE.COM FOR MORE VIDEO NEWS & TIPS
http://www.sqltrainingonline.com

SUBSCRIBE FOR OTHER SQL TIPS AND NEWS!
http://www.youtube.com/subscription_c...

SUBSCRIBE TO OUR EMAIL LIST!
http://www.sqltrainingonline.com

LET'S CONNECT!
Facebook:   / sqltrainingonline  
Twitter:   / sql_by_joey  
Linkedin:   / joeyblue  
SQLTrainingOnline: http://www.sqltrainingonline.com


Watch video SQL With - How to Use the With (CTE) Statement in SQL Server - Quick Tips Ep35 online without registration, duration hours minute second in high quality. This video was added by user Joey Blue 22 October 2012, don't forget to share it with your friends and acquaintances, it has been viewed on our site 65,662 once and liked it 810 people.