0345 4506120

Advanced Querying Microsoft SQL Server with Transact-SQL

The Advanced Querying Microsoft SQL Server with Transact-SQL course is designed to give delegates practical experience in using more complex Transact-SQL techniques. This course covers Microsoft SQL Server up to version 2016.

The delegate will learn and acquire skills as follows:

  • Creating and using Views
  • Using table expressions
  • Enhanced Grouping and Pivoting Data
  • Using Windowing ranking, offset and ranking functions
  • Creating and using Stored Procedures
  • Controlling Program Flow
  • Using Dynamic SQL
  • Implementing Error Handling
  • Improving Query Performance

Who will the Course Benefit?

IT Professionals and non-technical 'power users' who are required to implement more complex Transact-SQL queries.

  Reset

Learning Objectives

To provide more advanced coding skills for those already familiar with using basic Transact-SQL or as a follow-on course for those who have previously attended the Querying Microsoft SQL Server with Transact-SQL course.

Pre-Requisites

Requirements

A working knowledge of SQL is required along with practical experience in writing SQL statements. This can be obtained by attendance on the pre-requisite  Querying Microsoft SQL Server with Transact-SQL course.

Pre-Requisite Courses

  • Querying Microsoft SQL Server with Transact-SQL

Course Content

Day 1

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: USING TABLE EXPRESSIONS

  • Creating and using Views
  • Using Inline Table-Valued Functions
  • Using Derived Tables
  • Using Common Table Expressions

Session 2: PIVOTING AND ENHANCED GROUPING

  • Using PIVOT and UNPIVOT in Queries
  • Working with GROUPING SETS
  • Using ROLLUP, CUBE,GROUPING and GROUPING_ID

Session 3: USING WINDOWING FUNCTIONS

  • Using Window AGGREGATE functions in Queries
  • Using Window RANK functions in Queries
  • Using Window OFFSET functions in Queries

Day 2

Session 4: IMPLEMENTING STORED PROCEDURES

  • Overview of Stored Procedures
  • Creating simple Stored Procedures
  • Executing Stored Procedures
  • Passing parameters to Stored Procedures

Session 5: PROGRAMMING WITH TRANSACT-SQL

  • Using Programming Elements in Transact-SQL
  • Controlling Program Flow with IF/ELSE
  • Controlling Program Flow with WHILE
  • Working with Dynamic SQL

Session 6: IMPLEMENTING ERROR HANDLING

  • Structured error handling with TRY / CATCH block
  • Unstructured error handling
  • Generating error message using THROW and RAISEERROR
  • Error handling in conjunction with Transaction Control

Session 7: IMPROVING QUERY PERFORMANCE

  • Factors in Query Performance
  • Displaying Query Performance Data

Follow-On Courses

    • Programming Microsoft SQL Server with Transact-SQL

Notes:

  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

Exams & Certification

This course will cover some of the topics required for exam:

  • 70-761:Querying Data with Transact-SQL

Attending this course will help delegates gain many of the skills and product knowledge requirements as outlined in the exam objectives. Studying this course and its  associated reference materials can form part of the preparation to achieve certification. Experience, practice, self-study and aptitude are also key requirements for  exam success.

Before taking any exam, ensure you have the recommended experience. The Microsoft website lists all exam requirements and these are updated regularly.

Exams are not included as part of the course.

 

Privacy Notice

In order to provide you with the service requested we will need to retain and use your contact information in accordance with our Privacy Notice. If you choose to provide us with this information you explicitly consent to us using the information as necessary to provide the requested service to you. If you do not agree please do not proceed to request the service from us.

Marketing Permissions

Would you like to receive our newsletter and other information on products and services which we think will be of interest to you by email. We will always treat your information with care and in accordance with our Privacy Notice. You are free to withdraw this permission at any time.

 

Virtual Classroom

Virtual classrooms provide all the benefits of attending a classroom course without the need to arrange travel and accomodation. Please note that virtual courses are attended in real-time, commencing on a specified date.

Virtual Course Dates

Our Customers Include