Beginning T-SQL: A Step-by-Step Approach, Fourth Edition

  • 7h 39m
  • Kathi Kellenberger, Lee Everest
  • Apress
  • 2021

Get a performance-oriented introduction to the T-SQL language underlying the Microsoft SQL Server and Azure SQL database engines. This fourth edition is updated to include SQL Notebooks as well as up-to-date syntax and features for T-SQL on-premises and in the Azure cloud. Exercises and examples now include the WideWorldImporters database, the newest sample database from Microsoft for SQL Server. Also new in this edition is coverage of JSON from T-SQL, news about performance enhancements called Intelligent Query Processing, and an appendix on running SQL Server in a container on macOS or Linux.

Beginning T-SQL starts you on the path to mastering T-SQL with an emphasis on best practices. Using the sound coding techniques taught in this book will lead to excellent performance in the queries that you write in your daily work. Important techniques such as windowing functions are covered to help you write fast-executing queries that solve real business problems.The book begins with an introduction to databases, normalization, and to setting up your learning environment. You will learn about the tools you need to use such as SQL Server Management Studio, Azure Data Studio, and SQL Notebooks. Each subsequent chapter teaches an aspect of T-SQL, building on the skills learned in previous chapters. Exercises in most chapters provide an opportunity for the hands-on practice that leads to true learning and distinguishes the competent professional.

A stand-out feature in this book is that most chapters end with a Thinking About Performance section. These sections cover aspects of query performance relative to the content just presented, including the new Intelligent Query Processing features that make queries faster without changing code. They will help you avoid beginner mistakes by knowing about and thinking about performance from day 1.

You will:

  • Install a sandboxed SQL Server instance for learning
  • Understand how relational databases are designed
  • Create objects such as tables and stored procedures
  • Query a SQL Server table
  • Filter and order the results of a query
  • Query and work with specialized data types such as XML and JSON
  • Apply modern features such as window functions
  • Choose correct techniques so that your queries perform well

About the Authors

Kathi Kellenberger is an editor and DevOps advocate at Redgate Software and a Microsoft Data Platform MVP. She has been working with SQL Server for over 20 years, starting with version 6.5. She has worked as a developer, database administrator, and consultant. Kathi has been involved with almost 20 book projects as an author, co-author, or technical editor, and enjoys presenting at events, webinars, and user groups. When not working, she teaches T-SQL to beginners at a non-profit in St. Louis, Missouri that helps people transition to tech careers.

Lee Everest is a SQL Server developer who has worked with the product since version 6.5. He has taught part-time at Dallas College North Lake Campus for 18 years, and has had several students move on to companies such as Microsoft, filling roles from support engineer to data scientist to vice president. When Lee isn’t working, he enjoys computers, golf, and fishing.

In this Book

  • Getting Started
  • Exploring Database Concepts
  • Writing Simple SELECT Queries
  • Using Built-in Functions and Expressions
  • Joining Tables
  • Building on Subqueries, Common Table Expressions, and Unions
  • Grouping and Summarizing Data
  • Discovering Windowing Functions
  • Advanced WHERE Clauses
  • Manipulating Data
  • Managing Transactions
  • Understanding T-SQL Programming Logic
  • Implementing Logic in the Database
  • Expanding on Data Type Concepts
  • Working with XML and JSON
  • Writing Advanced Queries
  • Where to Go Next?
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.6 of 200 users Rating 4.6 of 200 users (200)
Rating 4.5 of 147 users Rating 4.5 of 147 users (147)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE