Skip to main Content

Intermediate SQL for Microsoft SQL Server (SQLINT)

  • Course Code MSQLINT
  • Duration 1 day

Course Delivery

Company Event Price

$675.00

excl. VAT

Request Group Training Add to Cart

Course Delivery

This course is available in the following formats:

  • Company Event

    Event at company

Request this course in a different delivery format.

Course Overview

Top

This course covers creating CTEs, using a Windows function, creating and using Global Variables, and pivoting data. This course is applicable to Microsoft SQL Server. Some topics may be applicable to other Database Management Systems, but most topics will not be supported in other DBMSs.

This course use data from the Adventureworks and OGCBOOKS databases.

 

Updated July 2026

Company Events

These events can be delivered exclusively for your company at our locations or yours, specifically for your delegates and your needs. The Company Events can be tailored or standard course deliveries.

Course Schedule

Top

Target Audience

Top
The Intermediate SQL for Microsoft SQL Server course is intended for SQL users in programming roles who have taken an Introduction to SQL course.

Course Objectives

Top

At the end of this course students will be able to:

  • Create Totals and Subtotals
  • Create and use Common Table Expressions (CTEs) and Derived Tables
  • Perform Pattern Matching
  • Create a Cross-tabular report using the PIVOT function
  • Rank Results using a Windows Function
  • Create and Use Global Variables
  • Loop through code repetitively

Course Content

Top

1- Review

  • Review common functionality from Introduction to SQL course.

2- Creating Totals and Subtotals

  • Create grand totals.
  • Specify a label on the total line.
  • Create subtotals and labels.

3- Creating Common Table Expression

  • Define why to create Common Table Expression (CTE).
  • Define the difference between a CTE and a view.
  • Create and use a CTE.
  • Use an in-line view as an alternative to a CTE.

4- Performing Pattern Matching

  • Use the LIKE operator for pattern matching in a WHERE clause.
  • Use the PATINDEX function for pattern matching in a SELECT statement.

5- Creating Cross-tabular Results

  • Pivot the data in a table.

6- Ranking Results

  • Use ranking to determine top values using the Windows Function of RANK.
  • Display an absolute number of rows or percentage of rows based on the sorted data.

7- Using Global Variables

  • Create variables to be used for code substitution.

8- Creating Loops

  • Create loops to repetitively execute code.

Course Prerequisites

Top

Required Prerequisites

Before attending this course, you need to be able to do the following:

  • Write simple SQL queries using the SELECT statement.
  • Sort data using an ORDER BY clause.
  • Filter data using the WHERE clause.
  • Use the IN operator on a WHERE clause to select multiple values.
  • Create aggregates using a summary function and a GROUP BY clause.


Useful Prerequisites

Before attending this course, it is useful to know the following:

  • Use character functions such as SUBSTRING.
  • Create aggregates using a summary function and a more than one column on the GROUP BY clause.

Test Certification

Top

None

Follow on Courses

Top

None

Cookie Control toggle icon