Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

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

Aggregating data with aggregate functions

  • Aggregate functions
  • Aggregate functions and their handling of NULL values
  • GROUP BY clause
  • Grouping data by multiple columns
  • Filtering aggregated data using the HAVING clause
  • Multidimensional data grouping with ROLLUP and CUBE operators
  • Identifying summary rows using GROUPING
  • 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

  • Contexts for using subqueries
  • Single-row and multi-row subqueries
  • Single-row subquery operators
  • Using aggregate functions within subqueries
  • Multi-row subquery operators such as IN, ALL, and ANY
  • Recursive subqueries

Analytic functions

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

Requirements

Participants should have a solid working knowledge of fundamental SQL and Microsoft SQL Server, including the ability to:

  • Compose basic SELECT statements to fetch data from single or multiple tables.
  • Utilize WHERE clauses and standard filtering criteria.
  • Employ standard SQL functions, including those for characters, numbers, and dates.
  • Grasp basic data types and type conversion processes.
  • Perform basic JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Understand and utilize GROUP BY and HAVING.
  • Possess some hands-on experience with databases, data analysis, or reporting.

As this is an advanced-level course, participants are expected to already be comfortable with core SQL concepts before engaging with more complex topics such as subqueries, advanced aggregation, set operators, and analytic/window functions.

Audience

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

Testimonials (4)

Related Categories