Get in Touch

Course Outline

Review: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit type conversion
  • Conversion functions
  • Nested function usage
  • Retrieving current date and time using various functions
  • CASE expressions

Aggregating data with aggregate functions

  • Aggregate functions
  • Handling NULL values in aggregate functions
  • The GROUP BY clause
  • Grouping data by multiple columns
  • Filtering aggregated results using the HAVING clause
  • Multi-dimensional grouping with ROLLUP and CUBE operators
  • Identifying rollups and cubes with the GROUPING function
  • The GROUPING SETS operator
  • Creating crosstabs using PIVOT

Retrieving data from multiple tables

  • Various types of joins
  • Table aliasing
  • INNER JOIN
  • LEFT, RIGHT, and FULL OUTER JOINs

Set operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Appropriate contexts for subquery implementation
  • Single-row and multi-row subqueries
  • Operators for single-row subqueries
  • Use of aggregate functions within subqueries
  • Operators for multi-row subqueries: IN, ALL, ANY
  • Recursive subqueries

Analytic functions

  • Application and usage
  • Window functions and window types
  • Partitions
  • Ranking functions
  • LAG and LEAD functions
  • FIRST_VALUE and LAST_VALUE functions
  • STRING_AGG function
  • Statistical functions

Requirements

Participants must possess a solid working knowledge of foundational SQL and Microsoft SQL Server, including the competency to:

  • Write basic SELECT queries to retrieve data from single or multiple tables.
  • Utilize WHERE clauses and fundamental filtering conditions.
  • Apply common SQL functions, including character, numeric, and date-related functions.
  • Demonstrate an understanding of basic data types and conversion mechanisms.
  • Execute basic JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Understand and implement GROUP BY and HAVING clauses.
  • Hold practical experience in database management, data analysis, or reporting.

This is an advanced-level course; therefore, participants are expected to be proficient with fundamental SQL concepts before engaging with complex topics such as subqueries, advanced aggregation, set operators, and analytic or window functions.

Target Audience

This course is intended for data analysts and developers of reporting applications operating for government entities.

 14 Hours

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses