MS SQL tutorial showing use of temporary tables, table variables and CTEs.