55232 Writing Analytical Queries for Business Intelligence
8/2/2021 - 8/3/2021
10/4/2021 - 10/6/2021



COURSE TIMES: 9:00am - 4:30pm

Printable version of this course
Register for this course


This three-day instructor led course is about writing TSQL queries for the purpose of database reporting, analysis, and business intelligence. Specifically, this course presents TSQL within the context of data analysis in other words, making meaning from the data rather than transaction-oriented data-tier application development.

The course starts with a brief discussion of levels of measurement and quantitative research methodology, and integrates these concepts into each TSQL topic presented. The goal is to provide a consistent, direct, and purposeful learning path for RDBMS data retrieval for use in analytical tools such as SQL Server Reporting Services, PowerBI, R, and Excel.


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.

Before attending this course, students must have:

  • Context knowledge of data analysis and business intelligence scenarios. For example, an understanding of a work-related business intelligence project or need.
  • Basic knowledge of the Windows operating system and its core functionality, including file system navigation.
  • Basic understanding of the purpose of relational database management systems such as SQL Server.


*Course cost listed does not include the cost of courseware. Course is subject to minimum enrollment. If minimum is not met this class may run as a LDL / Virtual class. Please contact us @ learn@vtec.org or 207-775-0244 for additional pricing information or if you have any questions.
Note: This course is eligibile for Microsoft SATVs.


Introduction to TSQL for Business Intelligence
Two Approaches to SQL Programming
TSQL Data Retrieval in an Analytics Environment
The Database Engine
SQL Server Management Studio and the CarDeal Sample Database
Identifying Variables in Tables
SQL is a Declarative Language
Introduction to the SELECT Query

Turning Table Columns into Variables for Analysis: SELECT List Expressions, WHERE, and ORDER BY
Turning Columns into Variables for Analysis
Column Expressions, Data Types, and Built-in Functions
Column aliases
Data type conversions
Built-in Scalar Functions
Table Aliases
The WHERE clause
Lab: Write queries

Combining Columns from Multiple Tables into a Single Dataset: The JOIN Operators
Primary Keys, Foreign Keys, and Joins
Understanding Joins, Part 1: CROSS JOIN and the Full Cartesian Product
Understanding Joins, Part 2: The INNER JOIN
Understanding Joins, Part 3: The OUTER JOINS
Understanding Joins, Part 4: Joining more than two tables
Understanding Joins, Part 5: Combining INNER and OUTER JOINs
Combining JOIN Operations with WHERE and ORDER BY
Lab: Write SELECT queries

Creating an Appropriate Aggregation Level Using GROUP BY
Identifying required aggregation level and granularity
Aggregate Functions
Order of operations in SELECT queries
Lab: Writing Aggregeate Function queries

Subqueries, Derived Tables and Common Table Expressions
Non-correlated and correlated subqueries
Derived tables
Common table expressions
Lab: Writing queries from the lesson

Encapsulating Data Retrieval Logic
Table-valued functions
Stored procedures
Creating objects for read-access users
Creating database accounts for analytical client tools

Getting Your Dataset to the Client
Connecting to SQL Server and Submitting Queries from Client Tools
Connecting and running SELECT queries from:
Exporting datasets to files using
Results pane from SSMS
The bcp utilityThe Import/Export Wizard