Protech Professional Technical Services, Inc.: Course Summary
Protech Professional Technical Services, Inc.: Course Summary
Course Summary
Description
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. Days 4 and 5 teach the remaining skills required to take exam 70-761.
Objectives
Topics
Introduction to Microsoft SQL Server Using Table Expressions
Introduction to T-SQL Querying Using Set Operators
Writing SELECT Queries Using Windows Ranking, Offset, and
Querying Multiple Tables Aggregate Functions
Sorting and Filtering Data Pivoting and Grouping Sets
Working with SQL Server Data Types Executing Stored Procedures
Using DML to Modify Data Programming with T-SQL
Using Built-In Functions Implementing Error Handling
Grouping and Aggregating Data Implementing Transactions
Using Subqueries
Audience
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.
Prerequisite
Before taking this course, students should have basic knowledge of the Microsoft Windows operating system
and its core functionality, and working knowledge of relational databases.
Duration
Five Days
Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other
companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the
intent of ProTech Professional Technical Services, Inc. to use any of these names generically.
ProTech Professional Technical Services, Inc.
Course Outline
I. Introduction to Microsoft SQL Server 2016 IV. Querying Multiple Tables
This module introduces SQL Server, the This module describes how to write queries
versions of SQL Server, including cloud that combine data from multiple sources in
versions, and how to connect to SQL Server Microsoft SQL Server 2016.
using SQL Server Management Studio. A. Understanding Joins
A. The Basic Architecture of SQL Server B. Querying with Inner Joins
B. SQL Server Editions and Versions C. Querying with Outer Joins
C. Getting Started with SQL Server D. Querying with Cross Joins and Self Joins
Management Studio Lab: Querying Multiple Tables
Lab: Working with SQL Server 2016 Tools Writing Queries that use Inner Joins
Working with SQL Server Management Writing Queries that use Multiple-Table
Studio Inner Joins
Creating and Organizing T-SQL Scripts Writing Queries that use Self-Joins
Using Books Online Writing Queries that use Outer Joins
Writing Queries that use Cross Joins
II. Introduction to T-SQL Querying
This module describes the elements of T-SQL V. Sorting and Filtering Data
and their role in writing queries. Describe the This module describes how to implement
use of sets in SQL Server. Describe the use of sorting and filtering.
predicate logic in SQL Server. Describe the A. Sorting Data
logical order of operations in SELECT B. Filtering Data with Predicates
statements. C. Filtering Data with TOP and OFFSET-
A. Introducing T-SQL FETCH
B. Understanding Sets D. Working with Unknown Values
C. Understanding Predicate Logic Lab: Sorting and Filtering Data
D. Understanding the Logical Order of Writing Queries that Filter Data using a
Operations in SELECT statements WHERE Clause
Lab: Introduction to T-SQL Querying Writing Queries that Sort Data Using an
Executing Basic SELECT Statements ORDER BY Clause
Executing Queries that Filter Data using Writing Queries that Filter Data Using the
Predicates TOP Option
Executing Queries That Sort Data Using
ORDER BY VI. Working with SQL Server 2016 Data Types
This module introduces the data types SQL
III. Writing SELECT Queries Server uses to store data.
This module introduces the fundamentals of A. Introducing SQL Server 2016 Data Types
the SELECT statement, focusing on queries B. Working with Character Data
against a single table. C. Working with Date and Time Data
A. Writing Simple SELECT Statements Lab: Working with SQL Server 2016 Data
B. Eliminating Duplicates with DISTINCT Types
C. Using Column and Table Aliases Writing Queries that Return Date and Time
D. Writing Simple CASE Expressions Data
Lab: Writing Basic SELECT Statements Writing Queries that use Date and Time
Writing Simple SELECT Statements Functions
Eliminating Duplicates Using DISTINCT Writing Queries That Return Character
Using Column and Table Aliases Data
Using a Simple CASE Expression Writing Queries That Return Character
Functions
Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other
companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the
intent of ProTech Professional Technical Services, Inc. to use any of these names generically.
Course Outline ProTech Professional Technical Services, Inc.
VII. Using DML to Modify Data Writing Queries That Use Scalar and
This module describes how to create DML Multi-Result Subqueries
queries, and why you would want to. Writing Queries That Use Correlated
A. Inserting Data Subqueries and an EXISTS Clause
B. Modifying and Deleting Data
Lab: Using DML to Modify Data XI. Using Table Expressions
Inserting Data Previously in this course, you learned about
Updating and Deleting Data using subqueries as an expression that
returned results to an outer calling query. Like
VIII. Using Built-In Functions subqueries, table expressions are query
This module introduces some of the many built expressions, but table expressions extend this
in functions in SQL Server 2016. idea by allowing you to name them and to work
A. Writing Queries with Built-In Functions with their results as you would work with data
B. Using Conversion Functions in any valid relational table. Microsoft SQL
C. Using Logical Functions Server 2016 supports four types of table
D. Using Functions to Work with NULL expressions: derived tables, common table
Lab: Using Built-In Functions expression (CTEs), views, and inline table-
Writing Queries That Use Conversion valued functions (TVFs). In this module, you
Functions will learn to work with these forms of table
Writing Queries that use Logical Functions expressions and learn how to use them to help
Writing Queries that Test for Nullability create a modular approach to writing queries.
A. Using Views
IX. Grouping and Aggregating Data B. Using Inline Table-Valued Functions
This module describes how to use aggregate C. Using Derived Tables
functions. D. Using Common Table Expressions
A. Using Aggregate Functions Lab: Using Table Expressions
B. Using the GROUP BY Clause Writing Queries That Use Views
C. Filtering Groups with HAVING Writing Queries That Use Derived Tables
Lab: Grouping and Aggregating Data Writing Queries That Use Common Table
Writing Queries That Use the GROUP BY Expressions (CTEs)
Clause Writing Queries That Sue Inline Table-
Writing Queries that Use Aggregate Valued Expressions
Functions
Writing Queries that Use Distinct XII. Using Set Operators
Aggregate Functions This module introduces how to use the set
Writing Queries that Filter Groups with the operators UNION, INTERSECT, and EXCEPT
HAVING Clause to compare rows between two input sets.
A. Writing Queries with the UNION operator
X. Using Subqueries B. Using EXCEPT and INTERSECT
This module describes several types of C. Using APPLY
subquery and how and when to use them. Lab: Using Set Operators
A. Writing Self-Contained Subqueries Writing Queries That Use UNION Set
B. Writing Correlated Subqueries Operators and UNION ALL
C. Using the EXISTS Predicate with Writing Queries That Use CROSS APPLY
Subqueries and OUTER APPLY Operators
Lab: Using Subqueries Writing Queries That Use the EXCEPT
Writing Queries That Use Self-Contained and INTERSECT Operators
Subqueries
Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other
companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the
intent of ProTech Professional Technical Services, Inc. to use any of these names generically.
Course Outline ProTech Professional Technical Services, Inc.
XIII. Using Windows Ranking, Offset, and XVI. Programming with T-SQL
Aggregate Functions This module describes how to enhance your T-
This module describes the benefits to using SQL code with programming elements.
window functions. Restrict window functions to A. T-SQL Programming Elements
rows defined in an OVER clause, including B. Controlling Program Flow
partitions and frames. Write queries that use Lab: Programming with T-SQL
window functions to operate on a window of Declaring Variables and Delimiting
rows and return ranking, aggregation, and Batches
offset comparison results. Using Control-Of-Flow Elements
A. Creating Windows with OVER Using Variables in a Dynamic SQL
B. Exploring Window Functions Statement
Lab: Using Windows Ranking, Offset, and Using Synonyms
Aggregate Functions
Writing Queries that use Ranking XVII. Implementing Error Handling
Functions This module introduces error handling for T-
Writing Queries that use Offset Functions SQL.
Writing Queries that use Window A. Implementing T-SQL error handling
Aggregate Functions B. Implementing structured exception
handling
XIV. Pivoting and Grouping Sets Lab: Implementing Error Handling
This module describes write queries that pivot Redirecting errors with TRY/CATCH
and unpivot result sets. Write queries that Using THROW to pass an error message
specify multiple groupings with grouping sets back to a client
A. Writing Queries with PIVOT and UNPIVOT
B. Working with Grouping Sets XVIII. Implementing Transactions
Lab: Pivoting and Grouping Sets This module describes how to implement
Writing Queries that use the PIVOT transactions.
Operator A. Transactions and the database engines
Writing Queries that use the UNPIVOT B. Controlling transactions
Operator Lab: Implementing Transactions
Writing Queries that use the GROUPING Controlling transactions with BEGIN,
SETS CUBE and ROLLUP Subclauses COMMIT, and ROLLBACK
Adding error handling to a CATCH block
XV. Executing Stored Procedures
This module describes how to return results by
executing stored procedures. Pass parameters
to procedures. Create simple stored
procedures that encapsulate a SELECT
statement. Construct and execute dynamic
SQL with EXEC and sp_executesql.
A. Querying Data with Stored Procedures
B. Passing Parameters to Stored procedures
C. Creating Simple Stored Procedures
D. Working with Dynamic SQL
Lab: Executing Stored Procedures
Using the EXECUTE statement to Invoke
Stored Procedures
Passing Parameters to Stored procedures
Executing System Stored Procedures
Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other
companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the
intent of ProTech Professional Technical Services, Inc. to use any of these names generically.