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 function usage
  • Retrieving current date and time via various functions
  • CASE expressions

Aggregating Data with Aggregate Functions

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

Fetching Data from Multiple Tables

  • Varieties of joins
  • Table aliases
  • INNER JOINs
  • LEFT, RIGHT, and FULL OUTER JOINs

Set Operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Appropriate contexts for using subqueries
  • Single-row vs. multi-row subqueries
  • Single-row subquery operators
  • Using aggregate functions within subqueries
  • Multi-row subquery operators: IN, ALL, and 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

To succeed in this program, participants should possess a solid grasp of foundational SQL and Microsoft SQL Server concepts, including the ability to:

  • Compose basic SELECT queries to extract data from single or multiple tables.
  • Implement WHERE clauses and elementary filtering conditions.
  • Utilize standard SQL functions, including those for characters, numbers, and dates.
  • Comprehend basic data types and type conversion mechanisms.
  • Execute fundamental JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Understand and utilize GROUP BY and HAVING clauses.
  • Bring practical experience with database management, data analysis, or reporting tools.

As this is an advanced-level course, participants are expected to be confident with core SQL concepts before engaging with complex topics like subqueries, advanced aggregation, set operators, and analytic/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