
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
About this book
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.
Trusted by 375,005 students
Access to over 1.5 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
Subtopic
DatabasesIndex
Computer ScienceTable of contents
- T-SQL Worth Knowing
- T-SQL Worth Knowing
- Preface
- Chapter 1 — Setting the Stage: The CycleWorks Project
- Chapter 2 — Foundations of Relational Database Design
- Chapter 3 — DDL in Action: Creating and Modifying Tables
- Chapter 4 — Retrieving Data: SELECT Queries and Filtering
- Chapter 5 — Aggregating Data: GROUP BY and HAVING
- Chapter 6 — Subqueries and Derived Tables
- Chapter 7 — Common Table Expressions (CTEs): Elegant Queries
- Chapter 8 — Temporary Tables and Table Variables
- Chapter 9 — Stored Procedures: Encapsulating Logic
- Chapter 10 — Parameters and Dynamic SQL
- Chapter 11 — Control Flow: IF, WHILE, and Error Handling
- Chapter 12 — Cursors: Row-by-Row Processing When Needed
- Chapter 13 — Indexing Strategies for Performance
- Chapter 14 — Advanced Optimization: Query Tuning and Statistics
- Chapter 15 — Permissions and Security
- Chapter 16 — Transactions and Concurrency Control
- Chapter 17 — Deployment and Automation
- Chapter 18 — Looking Ahead: Maintenance and Beyond
- About the Author
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access T-SQL Worth Knowing by Ingrid Pereira in PDF and/or ePUB format, as well as other popular books in Computer Science & Databases. We have over 1.5 million books available in our catalogue for you to explore.