MOC 20761 - Querying Data with Transact-SQL

MOC 20761 - Querying Data with Transact-SQL

Course Length:
Delivery Methods:
Next Live Class:Nov 2-6, 2020 10AM-6PM ET
Course Topics
  • Describe key capabilities and components of SQL Server.
  • 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.
Available Delivery Methods
Public Class
Public expert-led online training from the convenience of your home, office or anywhere with an internet connection. Guaranteed to run .
Private Class
Private classes are delivered for groups at your offices or a location of your choice.
Course Overview

This Querying Data with Transact-SQL training class introduces students to Transact-SQL. Students will gain a solid understanding of the Transact-SQL language. Students first learn the required knowledge for other courses in the SQL Server curriculum and then learn the remaining skills required to take exam 70-761.

The target audience for this course is Database Administrators, Database Developers and BI professionals.

Microsoft Certified Partner

Webucator is a Microsoft Certified Partner for Learning Solutions (CPLS). This class uses official Microsoft courseware and will be delivered by a Microsoft Certified Trainer (MCT).

Course Outline
  1. Introduction to Microsoft SQL Server
    1. The Basic Architecture of SQL Server
    2. SQL Server Editions and Versions
    3. Getting Started with SQL Server Management Studio
    4. Lab: Working with SQL Server Tools
      1. Working with SQL Server Management Studio
      2. Creating and Organizing T-SQL Scripts
      3. Using Books Online
  2. Introduction to T-SQL Querying
    1. Introducing T-SQL
    2. Understanding Sets
    3. Understanding Predicate Logic
    4. Understanding the Logical Order of Operations in SELECT statements
    5. Lab: Introduction to T-SQL Querying
      1. Executing Basic SELECT Statements
      2. Executing Queries that Filter Data using Predicates
      3. Executing Queries That Sort Data Using ORDER BY
  3. Writing SELECT Queries
    1. Writing Simple SELECT Statements
    2. Eliminating Duplicates with DISTINCT
    3. Using Column and Table Aliases
    4. Writing Simple CASE Expressions
    5. Lab: Writing Basic SELECT Statements
      1. Writing Simple SELECT Statements
      2. Eliminating Duplicates Using DISTINCT
      3. Using Column and Table Aliases
      4. Using a Simple CASE Expression
  4. Querying Multiple Tables
    1. Understanding Joins
    2. Querying with Inner Joins
    3. Querying with Outer Joins
    4. Querying with Cross Joins and Self Joins
    5. Lab: Querying Multiple Tables
      1. Writing Queries that use Inner Joins
      2. Writing Queries that use Multiple-Table Inner Joins
      3. Writing Queries that use Self-Joins
      4. Writing Queries that use Outer Joins
      5. Writing Queries that use Cross Joins
  5. Sorting and Filtering Data
    1. Sorting Data
    2. Filtering Data with Predicates
    3. Filtering Data with TOP and OFFSET-FETCH
    4. Working with Unknown Values
    5. Lab: Sorting and Filtering Data
      1. Writing Queries that Filter Data using a WHERE Clause
      2. Writing Queries that Sort Data Using an ORDER BY Clause
      3. Writing Queries that Filter Data Using the TOP Option
      4. Write Queries that filter data using the OFFSET-FETCH clause
  6. Working with SQL Server Data Types
    1. Introducing SQL Server Data Types
    2. Working with Character Data
    3. Working with Date and Time Data
      1. Writing Queries that Return Date and Time Data
      2. Writing Queries that use Date and Time Functions
      3. Writing Queries That Return Character Data
      4. Writing Queries That Return Character Functions
  7. Using DML to Modify Data
    1. Adding Data to Tables
    2. Modifying and Removing Data
    3. Generating automatic column values
    4. Lab: Using DML to Modify Data
      1. Inserting Records with DML
      2. Updating and Deleting Records Using DML
  8. Using Built-In Functions
    1. Writing Queries with Built-In Functions
    2. Using Conversion Functions
    3. Using Logical Functions
    4. Using Functions to Work with NULL
    5. Lab: Using Built-In Functions
      1. Writing Queries That Use Conversion Functions
      2. Writing Queries that use Logical Functions
      3. Writing Queries that Test for Nullability
  9. Grouping and Aggregating Data
    1. Using Aggregate Functions
    2. Using the GROUP BY Clause
    3. Filtering Groups with HAVING
    4. Lab: Grouping and Aggregating Data
      1. Writing Queries That Use the GROUP BY Clause
      2. Writing Queries that Use Aggregate Functions
      3. Writing Queries that Use Distinct Aggregate Functions
      4. Writing Queries that Filter Groups with the HAVING Clause
  10. Using Subqueries
    1. Writing Self-Contained Subqueries
    2. Writing Correlated Subqueries
    3. Using the EXISTS Predicate with Subqueries
    4. Lab: Using Subqueries
      1. Writing Queries That Use Self-Contained Subqueries
      2. Writing Queries That Use Scalar and Multi-Result Subqueries
      3. Writing Queries That Use Correlated Subqueries and an EXISTS Clause
  11. Using Table Expressions
    1. Using Views
    2. Using Inline Table-Valued Functions
    3. Using Derived Tables
    4. Using Common Table Expressions
    5. Lab: Using Table Expressions
      1. Writing Queries That Use Views
      2. Writing Queries That Use Derived Tables
      3. Writing Queries That Use Common Table Expressions (CTEs)
      4. Writing Queries That Use Inline Table-Valued Expressions (TVFs)
  12. Using Set Operators
    1. Writing Queries with the UNION operator
    2. Using EXCEPT and INTERSECT
    3. Using APPLY
    4. Lab: Using Set Operators
      1. Writing Queries That Use UNION Set Operators and UNION ALL
      2. Writing Queries That Use CROSS APPLY and OUTER APPLY Operators
      3. Writing Queries That Use the EXCEPT and INTERSECT Operators
  13. Using Windows Ranking, Offset, and Aggregate Functions
    1. Creating Windows with OVER
    2. Exploring Window Functions
    3. Lab: Using Windows Ranking, Offset, and Aggregate Functions
      1. Writing Queries that use Ranking Functions
      2. Writing Queries that use Offset Functions
      3. Writing Queries that use Window Aggregate Functions
  14. Pivoting and Grouping Sets
    1. Writing Queries with PIVOT and UNPIVOT
    2. Working with Grouping Sets
    3. Lab: Pivoting and Grouping Sets
      1. Writing Queries that use the PIVOT Operator
      2. Writing Queries that use the UNPIVOT Operator
      3. Writing Queries that use the GROUPING SETS CUBE and ROLLUP Subclauses
  15. Executing Stored Procedures
    1. Querying Data with Stored Procedures
    2. Passing Parameters to Stored procedures
    3. Creating Simple Stored Procedures
    4. Working with Dynamic SQL
    5. Lab: Executing Stored Procedures
      1. Using the EXECUTE statement to Invoke Stored Procedures
      2. Passing Parameters to Stored procedures
      3. Executing System Stored Procedures
  16. Programming with T-SQL
    1. T-SQL Programming Elements
    2. Controlling Program Flow
    3. Lab: Programming with T-SQL
      1. Declaring Variables and Delimiting Batches
      2. Using Control-Of-Flow Elements
      3. Using Variables in a Dynamic SQL Statement
      4. Using Synonyms
  17. Implementing Error Handling
    1. Implementing T-SQL error handling
    2. Implementing structured exception handling
    3. Lab: Implementing Error Handling
      1. Redirecting errors with TRY/CATCH
      2. Using THROW to pass an error message back to a client
  18. Implementing Transactions
    1. Transactions and the database engines
    2. Controlling transactions
    3. Lab: Implementing Transactions
      1. Controlling transactions with BEGIN, COMMIT, and ROLLBACK
      2. Adding error handling to a CATCH block
Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following is required for this SQL Server class:

  • Working knowledge of relational databases.
  • Basic knowledge of the Microsoft Windows operating system and its core functionality.
Register for a Live Class
$2,975.00
  • See More Class Dates

Please select a class.
Request a Private Class
  • Private Class for your Team
  • Online or On-location
  • Customizable
  • Expert Instructors
Request Pricing