Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit data conversion
  • Conversion utilities
  • Nested function usage
  • Retrieving the current date and time via various functions
  • CASE expressions

Aggregating data with aggregate functions

  • Core aggregate functions
  • Handling NULL values in aggregates
  • The GROUP BY clause
  • Grouping data by multiple columns
  • Filtering aggregated results using the HAVING clause
  • Multidimensional grouping with ROLLUP and CUBE operators
  • Identifying summaries via GROUPING
  • The GROUPING SETS operator
  • Creating crosstabs with PIVOT

Extracting 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

  • Scenarios and placements for subqueries
  • Single-row versus multi-row subqueries
  • Single-row subquery operators
  • Utilising aggregate functions within subqueries
  • Multi-row subquery operators – IN, ALL, ANY
  • Recursive subqueries

Analytic functions

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

Requirements

Participants are expected to possess a solid command of fundamental SQL and Microsoft SQL Server, including the capability to:

  • Compose basic SELECT queries to retrieve data from single or multiple tables.
  • Utilise WHERE clauses and elementary filtering conditions.
  • Manage common SQL functions, including character, numeric, and date-related operations.
  • Comprehend basic data types and conversion processes.
  • Employ basic JOIN operations.
  • Implement aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Interpret and apply GROUP BY and HAVING.
  • Demonstrate some practical experience in database management, data analysis, or reporting.

As an advanced-level course, it is assumed that participants are already at ease with core SQL concepts before advancing to complex topics like subqueries, advanced aggregation, set operators, and analytic or window functions.

Target Audience

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

Testimonials (4)

Related Categories