55232 Writing Analytical Queries for Business Intelligence

Skip to Scheduled Dates

Course Overview

How do you transform complex tables into clean, analysis-ready datasets?

This training course teaches you how to write analytical queries using Transact-SQL (T-SQL) for business intelligence (BI) workflows. You’ll learn to manipulate columns, combine tables, aggregate results, and encapsulate logic in reusable views and procedures. With a focus on BI scenarios, the course prepares you to deliver clean, structured datasets to tools like Power BI, Excel, SSRS, and RStudio.

Who Should Attend

This course is intended for information workers and data science professionals who seek to use database reporting and analysis tools such as Microsoft SQL Server Reporting Services, Excel, Power BI, R, SAS and other business intelligence tools, and wish to use TSQL queries to efficiently retrieve data sets from Microsoft SQL Server relational databases for use with these tools.

Course Objectives

    After completing this course, you will be able to build efficient SQL queries tailored for business intelligence and data analysis needs. The training emphasizes reusable logic, data encapsulation, and structured output delivery.

    • Understand the five types of requirements for BI querying
    • Combine and reshape data across multiple tables
    • Define the correct aggregation level with GROUP BY and HAVING
    • Use CTEs, subqueries, and derived tables for cleaner logic
    • Create views and functions to streamline data access
    • Deliver datasets to BI tools like Power BI and Excel

Course Outline

Module 1: Introduction to T-SQL for Business Intelligence

  • SQL programming approaches: transactional vs analytical
  • The database engine and SSMS
  • Introduction to SELECT queries
  • Using the CarDeal sample database
  • Lab: Intro to T-SQL for BI

Module 2: SELECT Expressions, WHERE, and ORDER BY

  • Column expressions, data types, and built-in functions
  • Column/table aliases and conversions
  • Using WHERE and ORDER BY clauses
  • Lab: Write filtering and sorting queries

Module 3: JOIN Operators and Combining Tables

  • Primary/foreign key relationships
  • CROSS JOIN, INNER JOIN, OUTER JOIN variations
  • Multi-table joins and nested joins
  • Combining JOINs with WHERE and ORDER BY
  • Lab: Write multi-table SELECT queries

Module 4: Aggregating with GROUP BY

  • Defining aggregation level and granularity
  • COUNT, SUM, AVG, and other aggregate functions
  • GROUP BY and HAVING usage
  • Lab: Write grouped and aggregated queries

Module 5: Subqueries, Derived Tables, and CTEs

  • Writing correlated and non-correlated subqueries
  • Using derived tables in FROM clauses
  • Structuring logic with common table expressions (CTEs)
  • Lab: Create reusable query logic

Module 6: Encapsulating Data Retrieval Logic

  • Creating and using views
  • Table-valued functions and stored procedures
  • Creating read-access objects for analytical clients
  • Lab: Build encapsulated SQL logic

Module 7: Getting Your Dataset to the Client

  • Connecting SQL Server to Excel, Power BI, and RStudio
  • Exporting with SSMS, bcp utility, and Import/Export Wizard
  • Best practices for client-ready data delivery
  • Lab: Export datasets and connect to BI tools

 Back to Course Search

Class Dates & Times

Class times are listed Eastern time

This is a 3-day class

Retail Price: $1,895.00

BRM Price: $1,610.75

Register When Time
 Register 08/18/2025 9:00AM - 5:00PM
 Register 11/24/2025 9:00AM - 5:00PM