Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit type conversion
  • Conversion utility functions
  • Nested function structures
  • Retrieving current date and time using various functions
  • The CASE expression

Aggregating data with aggregate functions

  • Overview of aggregate functions
  • Handling NULL values in aggregate functions
  • The GROUP BY clause
  • Grouping data by various column combinations
  • Filtering aggregated results with the HAVING clause
  • Multidimensional grouping via ROLLUP and CUBE operators
  • Identifying summary rows with the GROUPING function
  • The GROUPING SETS operator
  • Creating crosstabs using PIVOT

Querying data across multiple tables

  • Overview of different join types
  • Usage of table aliases
  • INNER JOIN mechanics
  • LEFT, RIGHT, and FULL OUTER JOINs

Set operations

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Appropriate contexts for using subqueries
  • Single-row versus multi-row subqueries
  • Operators for single-row subqueries
  • Incorporating aggregate functions within subqueries
  • Multi-row subquery operators: IN, ALL, ANY
  • Recursive subqueries

Analytic functions

  • Application scenarios
  • Window functions and window types
  • Data partitioning
  • Ranking functions
  • LAG and LEAD functions
  • FIRST_VALUE and LAST_VALUE functions
  • The STRING_AGG function
  • Statistical functions

Requirements

Attendees are required to possess a solid working command of fundamental SQL concepts and Microsoft SQL Server operations, specifically the ability to:

  • Construct basic SELECT statements to extract data from single or multiple tables.
  • Implement WHERE clauses and standard filtering logic.
  • Utilize standard SQL functions, including those for character manipulation, numeric calculations, and date handling.
  • Grasp basic data types and conversion processes.
  • Execute basic JOIN operations.
  • Apply standard aggregate functions like COUNT, SUM, AVG, MIN, and MAX.
  • Interpret and utilize GROUP BY and HAVING clauses.
  • Demonstrate practical experience in database management, data analysis, or reporting.

As an advanced-level course, participants should already feel confident with core SQL principles before tackling complex subjects such as 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