Apress Access

Beginning T-SQL 2012

2nd Edition

By Scott Shaw , Kathi Kellenberger

  • eBook Price: $34.99
Buy eBook Buy Print Book
Beginning T-SQL 2012 is the first step toward learning the T-SQL language that underlies Microsoft’s SQL Server database engine.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-3704-4
  • 456 Pages
  • User Level: Beginner
  • Publication Date: July 3, 2012
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • DevOps, DBAs, and DBaaS
  • Securing SQL Server
  • Beginning SQL Server R Services
  • Beginning SQL Queries, 2nd Edition
  • Relational Database Programming
  • Database Systems
Full Description

Beginning T-SQL 2012 is the first step toward learning the T-SQL language that underlies Microsoft’s SQL Server database engine. T-SQL is essential in writing SQL statements to get data into and out of a database. T-SQL is the foundation for business logic embedded in the database in the form of stored procedures and functions. Beginning T-SQL 2012 starts you on the path to mastering T-SQL, with an emphasis on best practices and sound coding techniques.

Beginning T-SQL 2012 begins with an introduction to databases, normalization, and to SQL Server Management Studio. Each subsequent chapter teaches an aspect of T-SQL, building on the skills learned in previous chapters. Exercises in each chapter give readers an opportunity for the hands-on practice that leads to true learning and distinguishes the competent professional.

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

What you’ll learn

  • The fundamentals of relational theory, upon which Transact-SQL is based
  • How to write accurate queries that are scalable and perform well
  • How to combine set-based and procedural processing, obtaining the best from both worlds
  • How to embed business logic in your database through stored procedures and functions
  • How to simplify your work with new and advanced features, such as common table expressions and virtual tables
  • How to enhance performance by knowing when to apply features such table value parameters, and when not to

Who this book is for

Beginning T-SQL 2012 is for developers and database administrators 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. Working with XML
  9. Moving Logic to the Database
  10. Working with Data Types
  11. Writing Advanced Queries
  12. 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.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.
No errata are currently published


    1. Pro SharePoint 2013 Business Intelligence Solutions


      View Book

    2. SQL Server T-SQL Recipes


      View Book

    3. Expert T-SQL Window Functions in SQL Server


      View Book

    4. Pro T-SQL Programmer\'s Guide


      View Book