Module 1: Getting Started with Transact-SQL
In this module you will learn about the basics of the
Transact-SQL (T-SQL) language, as well as general properties and terminology of
relational databases. This module will also introduce the basic SELECT
statement for retrieving data from a table.
Lessons
Lab : Get started with SQL Server query tools and writing
queries in T-SQL
After completing this module, students will be able to:
Using a query tool to write and execute queries in
Transact-SQL
Understand the basic concepts of relational database and
the T-SQL language
Write SELECT statements to retrieve data from a
relational database table
Understand basic datatypes and how they are used
Understand the basics of NULL values
Module 2: Sorting and Filtering Query Results
In the module you will learn how to control what data is
returned, the order in which it is returned. You will use the ORDER BY clause,
with and without paging. You will learn about various kinds of filters that can
be used in the WHERE clause to control which data rows are returned. You will
also learn how to manage the results by removing duplicates with DISTINCT.
Lessons
Sorting query results
Filtering the data
Lab : Sort and filter data returned by SELECT queries
After completing this module, students will be able to:
Use ORDER BY to sort results from a T-SQL SELECT
statement
Add a TOP clause to limit the ordered rows returned
Page the sorted data with OFFSET-FET
Write WHERE clauses to filter the rows returned
Use DISTINCT to eliminate duplicate rows in the results
Module 3: Using Joins and Subqueries
In this module, you will explore T-SQL queries which
access data from multiple tables with various kinds of JOIN operations and
simple subqueries.
Lessons
Lab : Write SELECT statements using subqueries
After completing this module, students will be able to:
Write queries accessing data from multiple tables using
JOIN operations
Understand the differences between type of JOIN
operations: INNER JOIN, OUTER JOIN, CROSS JOIN
Understand how to join a table to itself with a self-join
Write subqueries within a SELECT statement
Understand the difference between scalar and multi-valued
subqueries
Understand the difference between correlated and
self-contained subqueries