Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit type conversion
  • Conversion utilities
  • Nested function usage
  • Retrieving current date and time via various functions
  • CASE expression logic

Data Aggregation with Aggregate Functions

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

Data Retrieval from Multiple Tables

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

Set Operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Scenarios for using subqueries
  • Single-row and multi-row subqueries
  • Operators for single-row subqueries
  • Using aggregate functions within subqueries
  • Multi-row subquery operators: IN, ALL, ANY
  • Recursive subqueries

Analytic Functions

  • Purpose and application
  • 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 possess a solid command of foundational SQL and Microsoft SQL Server concepts, specifically the ability to:

  • Construct fundamental SELECT queries to extract data from single or multiple tables.
  • Apply WHERE clauses and basic filtering criteria.
  • Utilize standard SQL functions, including those for character, numeric, and date manipulation.
  • Grasp basic data types and conversion processes.
  • Execute basic JOIN operations.
  • Employ aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Comprehend and apply GROUP BY and HAVING clauses.
  • Have hands-on experience with databases, data analysis, or reporting tasks.

As an advanced-level module, this course assumes that participants are already proficient in core SQL principles before advancing to complex topics like subqueries, advanced aggregation, set operators, and analytic or window functions.

Target Audience

The course is tailored for data analysts and developers working with reporting applications.

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories