
T-SQL Worth Knowing
Write Clean T-SQL Queries and Stored ProceduresBy Ingrid PereiraLength7h 52m
About this audiobook
T-SQL stored procedures and SQL Server window functions. Are you a database developer or data analyst who wants to write T-SQL code that is both powerful and maintainable? Do you need to master stored procedures, CTEs, and window functions to handle complex queries with confidence? T-SQL Worth Knowing is the hands-on guide that takes you from beginner to pro, showing you the patterns that make SQL Server code readable, fast, and production-ready.
In this practical book, Ingrid Pereira demystifies advanced T-SQL features and teaches you how to apply them in real-world scenarios. You'll learn to write efficient stored procedures that reduce network traffic and improve security, use Common Table Expressions (CTEs) to break down intricate logic into manageable steps, and harness window functions for ranking, running totals, and moving averages without self-joins.
Each chapter includes clear explanations, annotated code examples, and exercises that reinforce key concepts. You'll discover how to optimize query performance with indexing strategies, avoid common pitfalls like parameter sniffing and implicit conversions, and design database objects that scale. By the end, you'll be able to tackle any SQL challenge—from reporting to ETL—with elegance and speed.
Unlike generic SQL books that teach only basics or focus on a single dialect, this book is laser-focused on T-SQL for SQL Server, covering version-specific features like STRING_AGG, LEAD/LAG, and ROW_NUMBER. It bridges the gap between theory and practice, giving you reusable patterns for pagination, hierarchical queries, and dynamic pivots.
If you've tried Practical SQL, 2nd Edition by Anthony DeBarros or SQL in 10 Minutes a Day, Sams Teach Yourself by Ben Forta and wanted deeper T-SQL coverage, this book is your next step. It's the missing manual for developers who write SQL every day and want to level up.
What you'll learn:
Write robust stored procedures with error handling and transactions
Use CTEs and recursive queries to simplify hierarchical data
Apply window functions for analytics without subqueries
Optimize query performance with indexes and execution plans
Design readable code that your team will thank you for
Stop wrestling with slow, tangled queries. T-SQL Worth Knowing gives you the techniques and confidence to write SQL Server code that works—and works well. Scroll up and click Buy Now to start writing better T-SQL today.
Audiobook details
GenreTechnology
Length7 hrs 52 mins
Narrated byListen with 1,000+ voices
FormateBook with Audio
LanguageEnglish
Table of contents
1Introduction
2Preface
3Chapter 1 — Setting the Stage: The CycleWorks Project
4Chapter 2 — Foundations of Relational Database Design
5Chapter 3 — DDL in Action: Creating and Modifying Tables
Show all chaptersShow less
6Chapter 4 — Retrieving Data: SELECT Queries and Filtering
7Chapter 5 — Aggregating Data: GROUP BY and HAVING
8Chapter 6 — Subqueries and Derived Tables
9Chapter 7 — Common Table Expressions (CTEs): Elegant Queries
10Chapter 8 — Temporary Tables and Table Variables
11Chapter 9 — Stored Procedures: Encapsulating Logic
12Chapter 10 — Parameters and Dynamic SQL
13Chapter 11 — Control Flow: IF, WHILE, and Error Handling
14Chapter 12 — Cursors: Row-by-Row Processing When Needed
15Chapter 13 — Indexing Strategies for Performance
16Chapter 14 — Advanced Optimization: Query Tuning and Statistics
17Chapter 15 — Permissions and Security
18Chapter 16 — Transactions and Concurrency Control
19Chapter 17 — Deployment and Automation
20Chapter 18 — Looking Ahead: Maintenance and Beyond
21About the Author