Querying Data with Transact-SQL -
M20761 Course Outline

(5 Days)

Overview

About This Course

This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can be taught as a course to students requiring the knowledge for other courses in the SQL Server curriculum.

Audience Profile

Audience Profile

The main purpose of the course is to give students a good understanding of the Transact-SQL language which is used by all SQL Server-related disciplines; namely, Database Administration, Database Development and Business Intelligence. As such, the primary target audience for this course is: Database Administrators, Database Developers and BI professionals.

Prerequisites

Prerequisites

Basic knowledge of the Microsoft Windows operating system and its core functionality.

Working knowledge of relational databases

At Course Completion

At Course Completion

After completing this course, students will be able to:

Describe key capabilities and components of SQL Server 2016.

Describe T-SQL, sets, and predicate logic.

Write a single table SELECT statement.

Write a multi-table SELECT statement.

Write SELECT statements with filtering and sorting.

Describe how SQL Server uses data types.

Write DML statements.

Write queries that use built-in functions.

Write queries that aggregate data.

Write subqueries.

Create and implement views and table-valued functions.

Use set operators to combine query results.

Write queries that use window ranking, offset, and aggregate functions.

Transform data by implementing pivot, unpivot, rollup and cube.

Create and implement stored procedures.

Add programming constructs such as variables, conditions, and loops to T-SQL code.

Course Outline

Course Outline

Module 1: Introduction to Microsoft SQL Server 2016

This module introduces SQL Server, the versions of SQL Server, including cloud versions, and how to connect to SQL Server using SQL Server Management Studio.

Lessons

The Basic Architecture of SQL Server

SQL Server Editions and Versions

Getting Started with SQL Server Management Studio

Lab : Working with SQL Server 2016 Tools

Working with SQL Server Management Studio

Creating and Organizing T-SQL Scripts

Using Books Online

After completing this module, you will be able to:

Describe relational databases and Transact-SQL queries.

Describe the on-premise and cloud-based editions and versions of SQL Server.

Describe how to use SQL Server Management Studio (SSMS) to connect to an instance of SQL Server, explore the databases contained in the instance, and work with script files that contain T-SQL queries.

Module 2: Introduction to T-SQL Querying

This module describes the elements of T-SQL and their role in writing queries. Describe the use of sets in SQL Server. Describe the use of predicate logic in SQL Server. Describe the logical order of operations in SELECT statements.

Lessons

Introducing T-SQL

Understanding Sets

Understanding Predicate Logic

Understanding the Logical Order of Operations in SELECT statements

Lab : Introduction to T-SQL Querying

Executing Basic SELECT Statements

Executing Queries that Filter Data using Predicates

Executing Queries That Sort Data Using ORDER BY

After completing this module, you will be able to:

Describe the role of T-SQL in writing SELECT statements.

Describe the elements of the T-SQL language and which elements will be useful in writing queries.

Describe the concepts of the set theory, one of the mathematical underpinnings of relational databases, and to help you apply it to how you think about querying SQL Server