Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit versus implicit type conversion
  • Dedicated conversion functions
  • Nested function usage
  • Retrieving current date and time via various functions
  • CASE expression implementation

Aggregating Data with Aggregate Functions

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

Data Retrieval Across Multiple Tables

  • Various types of joins
  • Use of table aliases
  • INNER JOIN syntax
  • LEFT, RIGHT, and FULL OUTER JOINS

Set Operators

  • UNION operation
  • UNION ALL operation
  • INTERSECT operation
  • EXCEPT operation

Subqueries

  • Identifying appropriate contexts for subqueries
  • Differences between single-row and multi-row subqueries
  • Operators for single-row subqueries
  • Incorporating aggregate functions within subqueries
  • Multi-row subquery operators: IN, ALL, and ANY
  • Recursive subquery construction

Analytic Functions

  • Application scenarios
  • Window functions and window types
  • Partitioning data
  • Ranking functions
  • LAG and LEAD functions
  • FIRST_VALUE and LAST_VALUE functions
  • The STRING_AGG function
  • Statistical analysis functions

Requirements

Participants are required to possess a solid working command of fundamental SQL and Microsoft SQL Server, demonstrated by the capacity to:

  • Construct basic SELECT queries to extract data from single or multiple tables.
  • Employ WHERE clauses and elementary filtering criteria.
  • Utilize standard SQL functions, including character, numeric, and date-handling capabilities.
  • Comprehend fundamental data types and their conversion mechanisms.
  • Execute basic JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Interpret and apply GROUP BY and HAVING clauses.
  • Hold practical experience in database management, data analysis, or reporting.

As an advanced-level course, attendees are assumed to be at ease with core SQL principles prior to tackling more intricate subjects like subqueries, complex aggregation, set operators, and analytic or window functions.

Target Audience

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

Number of participants


Price per participant (excl. VAT)

Testimonials (4)

Upcoming Courses

Related Categories