Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit conversions
  • Conversion functions
  • Nested functions
  • Retrieving the current date and time using various functions
  • CASE expressions

Aggregating data with aggregate functions

  • Aggregate functions
  • Aggregate functions and NULL values
  • GROUP BY clause
  • Grouping by various columns
  • Filtering aggregated results using the HAVING clause
  • Multi-dimensional data grouping with ROLLUP and CUBE operators
  • Identifying summary rows using GROUPING
  • GROUPING SETS operator
  • Crosstabs using PIVOT

Fetching data from multiple tables

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

Set operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Contexts and locations for subquery usage
  • Single-row and multi-row subqueries
  • Single-row subquery operators
  • Using aggregate functions within subqueries
  • Multi-row subquery operators - IN, ALL, ANY
  • Recursive subqueries

Analytic functions

  • Purpose and application
  • Window functions and window types
  • Partitions
  • Ranking functions
  • LAG/LEAD functions
  • FIRST_VALUE/LAST_VALUE functions
  • STRING_AGG function
  • Statistical functions

Requirements

Participants are expected to possess a solid working knowledge of basic SQL and Microsoft SQL Server, with the ability to:

  • Compose basic SELECT queries to extract data from single or multiple tables.
  • Utilise WHERE clauses and standard filtering conditions.
  • Employ common SQL functions, including character, numeric, and date functions.
  • Understand fundamental data types and conversion processes.
  • Execute basic JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Comprehend and implement GROUP BY and HAVING.
  • Have some practical experience in database management, data analysis, or reporting.

As an advanced-level course, participants should already be confident with fundamental SQL concepts before tackling more complex topics like subqueries, advanced aggregation, set operators, and analytic or window functions.

Audience

This course is tailored for data analysts and developers of reporting applications.

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories