Get in Touch
 Duration 14 hours

Course Outline

Refresher: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit data conversion
  • Use of conversion functions
  • Nested function usage
  • Retrieving current date and time using various functions
  • Implementation of CASE expressions

Aggregating data with aggregate functions

  • Overview of aggregate functions
  • Handling NULL values in aggregations
  • The GROUP BY clause
  • Grouping by various columns
  • Filtering aggregated results with the HAVING clause
  • Multi-dimensional grouping via ROLLUP and CUBE operators
  • Identifying summaries with the GROUPING function
  • Utilizing the GROUPING SETS operator
  • Creating crosstabs using PIVOT

Extracting data from multiple tables

  • Varieties of join operations
  • Using table aliases
  • INNER JOIN syntax
  • LEFT, RIGHT, and FULL OUTER JOINs

Set operations

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Appropriate contexts for using subqueries
  • Distinguishing single-row vs. multi-row subqueries
  • Operators for single-row subqueries
  • Using aggregate functions within subqueries
  • Multi-row subquery operators: IN, ALL, ANY
  • Constructing 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
  • The STRING_AGG function
  • Statistical functions

Requirements

To succeed in this course, participants should possess a solid working knowledge of fundamental SQL and Microsoft SQL Server, demonstrated by the ability to:

  • Compose basic SELECT statements to fetch data from single or multiple tables.
  • Employ WHERE clauses and standard filtering criteria.
  • Utilize standard SQL functions, including character, numeric, and date operations.
  • Grasp basic data types and type conversions.
  • Execute elementary JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Comprehend and implement GROUP BY and HAVING logic.
  • Bring practical experience in database management, data analysis, or reporting.

As an advanced-level programme, it is assumed that participants are already confident with core SQL principles before tackling complex subjects like subqueries, advanced aggregation, set operators, and analytic/window functions.

Audience

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

Custom Corporate Training

Training solutions designed exclusively for businesses.

  • Customized Content: We adapt the syllabus and practical exercises to the real goals and needs of your project.
  • Flexible Schedule: Dates and times adapted to your team's agenda.
  • Format: Online (live), In-company (at your offices), or Hybrid.
Investment

Price per private group, online live training, starting from 3200 € + VAT*

Contact us for an exact quote and to hear our latest promotions

Testimonials (4)

Provisional Upcoming Courses (Contact Us For More Information)

Related Categories