Advanced SQL Server Database Querying

Duration: 2 Days


This course is aimed at SQL Server database developers, administrators and analysts who need to take the basics of SQL Server SQL Data Manipulation Language (DML) statements to the next level. The aim of the course is to show the more advanced use of SELECT, UPDATE and DELETE statements providing delegates with the necessary knowledge and hands on experience to construct complex queries to satisfy complex information extraction requirements. The course focuses on real world business needs and shows how to make the extensive SQL Server library of functions work together to manipulate and extract data values. It also explores the many different ways of retrieving information from multiple tables from simple multi-table SELECT statements through to complex correlated sub-queries as well as introducing the many ways of analysing and processing data through methods such as grouping of data and implementing computed columns. The course will do more than just teach each topic as an isolated subject; it will show delegates how to integrate all these query methods and more to help satisfy their business information extraction needs. This course, along with the Creating Databases in SQL Server and SQL Server Database Querying Courses, helps to prepare delegates for the Microsoft 70-461 exam: Querying Microsoft SQL Server 2012/2014/2016, exam 70-761 Querying Data with Transact-SQL (M20761), and exam 70-762: Developing SQL Databases (M20762), which credit towards MCSA and MCSE certifications. It should be noted, however, that all course attendances should be complemented by reference to the skills measured by the exam, a period of self-study and test exams before sitting the actual exam. Covers SQL Server 2005, SQL Server 2008, SQL Server 2012, SQL Server 2014, and SQL Server 2016.


Delegates would benefit from a basic understanding of the concept of relational databases and terms such as table, column, row and relationship, although these concepts will be recapped at the start of the course.

Course includes

A comprehensive set of reference notes covering course topics and follow-up telephone support.

Course outline

Review of SELECT Statement Basics

Nesting Functions

CASE Statement

Multiple Table Selects

  • CROSS Joins
  • INNER Join
  • OUTER Joins
  • Table Aliases
  • Self Join
  • Joining on non-key columns
  • Advanced Joins
  • Mixing INNER and OUTER Joins

Temporary Tables

  • Local Temporary Tables
  • Global Temporary Tables


  • Single Table Views
  • Multi-table Views
  • Updating Through Views

Advanced Data Organisation

  • The GROUP BY Clause
  • The HAVING Clause
  • Ranking Grouped Data
  • The CUBE and ROLLUP options

Sub Queries

  • Simple Sub Queries
  • Using Aggregate Functions in Sub Queries
  • Correlated Sub Queries
  • Avoiding Sub Queries
  • Derived Table Sub Queries
  • Sub Queries in SELECT Lists

Advanced Update and Delete Statements

  • Simple Update and Delete Statements
  • UPDATES and DELETES With Sub Queries
  • The FROM Clause

Merging Records

  • MERGE Statement

Common Table Expressions

  • Simple CTEs
  • Recursive Data Sets
  • Hierarchical Data Sets

Simple Execution Plans

  • Graphical Execution Plans
  • Estimated Plans
  • Actual Plans
  • Query Plan Costs
  • Physical Operations
  • Order Of Execution

Live Chat

Course Dates

Location: just outside London

Dates Price Book Now
19 - 20 Nov £745 + VAT Book Now
23 - 24 Sep £745 + VAT Book Now
21 - 22 Oct £745 + VAT Book Now
18 - 19 Nov £745 + VAT Book Now
See more dates...
Dates Price Book Now
14 - 15 Jan £745 + VAT Book Now
1 - 2 Jul £745 + VAT Book Now
29 - 30 Jul £745 + VAT Book Now
See more dates...
All our courses can be tailored to requirements at your own offices. For alternative dates, please email or call us on 0208 269 4260
All prices are per person and are subject to VAT
15% discount for groups of four delegates.
10% discount for groups of three delegates.
(This offer applies for delegates on the same public scheduled course on the same date.)

Related Courses

"Very clear instruction and presentation."

Hay Group

"Exceptional knowledge base and tailored to suit our requirements."


"The course was well structured, clear and in a comfortable setting. The tutoring was exceptional."


© Transmedia . 85 Tottenham Court Road, London, W1T 4TQ  UK . 0208 269 4260       Privacy Policy