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.
Select specific date to see price, venue and full details.
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.
Related Courses
- Accelerated SQL Server 2016 Integration Services
- Advanced SQL Server Database Querying
- Advanced T-SQL Querying, Programming and Tuning for SQL Server 2012,2014 & 2016
- Intermediate Querying SQL Databases using T-SQL
- Introduction to SQL for Testers
- Introduction to SQL Programming Training Blended Learning
- Microsoft SQL Server with Transact-SQL