Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

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

Aggregating Data with Aggregate Functions

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

Retrieving 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

  • Appropriate contexts for subqueries
  • 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

  • Applications of analytic functions
  • Window functions and window types
  • Partitions
  • Ranking functions
  • LAG and LEAD functions
  • FIRST_VALUE and LAST_VALUE functions
  • The STRING_AGG function
  • Statistical functions

Requirements

Participants should possess a solid working knowledge of foundational SQL and Microsoft SQL Server, with the ability to:

  • Compose basic SELECT queries to retrieve data from single or multiple tables.
  • Apply WHERE clauses and fundamental filtering conditions.
  • Utilize standard SQL functions, including character, numeric, and date operations.
  • Understand basic data types and their conversions.
  • Execute basic JOIN operations.
  • Implement aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Grasp and apply GROUP BY and HAVING clauses.
  • Have some practical experience in database management, data analysis, or reporting.

As an advanced-level course, it is expected that participants are already comfortable with core SQL concepts before engaging with 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