Apress

Beginning T-SQL 2008

By Kathi Kellenberger

Beginning T-SQL 2008 Cover Image

Even if you have little or no knowledge of T-SQL, Beginning T-SQL 2008 will bring you up to intermediate level and teach you best practices along the way. You'll learn how to write code that will help you to achieve the best-performing applications possible.

Full Description

  • ISBN13: 978-1-4302-2461-7
  • User Level: Beginner
  • Publication Date: October 14, 2009
  • Available eBook Formats: PDF
  • Print Book Price: $39.99
  • eBook Price: $27.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Even if you have little or no knowledge of T-SQL, Beginning T-SQL 2008 will bring you up to intermediate level and teach you best practices along the way. You'll learn how to write code that will help you to achieve the best-performing applications possible.

You'll find an introduction to databases, normalization, and SQL Server Management Studio. You'll understand how data is stored in a database and learn how to use at least one of the available tools to get to that data.

Each subsequent chapter teaches an aspect of T-SQL, building on the skills learned in previous chapters. Exercises are included in each chapter because the only way to learn T-SQL is to write some code.

This book will do more than just give the syntax and examples. It will teach you techniques to help you avoid common errors and create robust and well-performing code.

  • Imparts best practices for writing T-SQL
  • Helps readers avoid common errors
  • Shows how to write scalable code that yields good performance

What you’ll learn

  • Understand the fundamentals of relational theory, upon which Transact-SQL is based
  • Write accurate queries that are scalable and perform well
  • Combine set-based and procedural processing, obtaining the best from both worlds
  • Embed business logic in your database through stored procedures and functions
  • Simplify your work through new and advanced features such as common-table expressions and virtual tables
  • Enhance performance by knowing when to apply features such table value parameters

Who this book is for

This book is for developers who will be writing database applications against SQL Server databases.

Table of Contents

Table of Contents

  1. Getting Started
  2. Writing Simple SELECT Queries
  3. Using Functions and Expressions
  4. Querying Multiple Tables
  5. Grouping and Summarizing Data
  6. Manipulating Data
  7. Understanding T-SQL Programming Logic
  8. Moving Logic to the Database
  9. Working with New Data Types
  10. Writing Advanced Queries
  11. Where to Go Next?
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

* Required Fields

On page 75:

The text and the graphical query execution plan do not match. The text says the first query uses 0% of the batch but the graphic shows it uses 33%. Also the queries as described in the text do not match the queries shown in the execution plan.