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 the current date and time using various functions
  • CASE expressions

Aggregating data with aggregate functions

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

Extracting data from multiple tables

  • 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 versus multi-row subqueries
  • Operators for single-row subqueries
  • Using aggregate functions within subqueries
  • Multi-row subquery operators: IN, ALL, ANY
  • Recursive subqueries

Analytic functions

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

Requirements

Learners are expected to have a solid grasp of fundamental SQL concepts and Microsoft SQL Server, with the ability to:

  • Construct basic SELECT statements to extract data from single or multiple tables.
  • Implement WHERE clauses along with standard filtering conditions.
  • Utilize common SQL functions, including those for characters, numbers, and dates.
  • Understand standard data types and their conversions.
  • Execute basic JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Utilize GROUP BY and HAVING clauses effectively.
  • Possess practical experience in database management, data analysis, or reporting.

As this is an advanced-level course, participants should feel confident in foundational SQL principles before tackling complex topics like subqueries, advanced aggregation, set operators, and analytic or window functions.

Target 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