Download presentation
Presentation is loading. Please wait.
1
T-SQL: Simple Changes That Go a Long Way
DAVE VALENTINE @ingeniousSQL ingeniousSQL.com linkedin.com/in/ingenioussql
2
Thank You Sponsors! Visit the Sponsor tables to enter their end of day raffles. Turn in your completed Event Evaluation form at the end of the day in the Registration area to be entered in additional drawings. Want more free training? Check out the Houston Area SQL Server User Group which meets on the 2nd Tuesday of each month. Details at
3
Agenda OUTPUT INTO Table Valued Parameter Window Functions
Common Table Expressions COALESCE & ISNULL
4
Understand the Problem Before You Fix Create the Problem
5
About Dave… MCP MCSA: SQL Server 2012 Database / BI Developer
Adjunct Professor @IngeniousSQL IngeniousSQL.com
6
OUTPUT INSERT, UPDATE, DELETE, MERGE SCOPE_IDENTITY IDENT_CURRENT INSERTED.* and DELETED.*
7
INTO INTO <New Table> Debugging Table Definitions
TVP and Table Variables Indexes, Triggers and Constraints Identities
8
Table Valued Parameter
Easily store and transfer rows of data User Defined Table Type UNIQUE and PRIMARY KEY Constraints No indexing No statistics Read only as procedure parameters
9
T-SQL Window Functions
Ranking RANK, ROW_NUMBER, NTILE, DENSE_RANK Aggregate AVG, MIN, SUM, COUNT, STDEV, VAR, MAX Analytic LEAD, FIRST_VALUE, LAG, LAST_VALUE
10
Common Table Expressions
CTE Simplify query syntax Multiple reference Recursive queries VIEW alternative
11
COALESCE & ISNULL COALESCE (expression [,…n])
ISNULL (expression, expression) Data Types Optional Parameter CSV
12
T-SQL Simple Changes Demo
13
Summary INTO OUTPUT Table Valued Parameter Window Functions
Common Table Expressions COALESCE & ISNULL
14
Questions DAVE VALENTINE @ingeniousSQL ingeniousSQL.com
linkedin.com/in/ingenioussql
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.