Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit conversions
  • Conversion functions
  • Nested functions
  • Retrieving current date and time via various functions
  • CASE expressions

Aggregating data with aggregate functions

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

Fetching 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
  • Operators for single-row subqueries
  • Applying aggregate functions within subqueries
  • Operators for multi-row subqueries - IN, ALL, ANY
  • Recursive subqueries

Analytic functions

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

Requirements

Participants should possess a solid grasp of fundamental SQL and Microsoft SQL Server, including the capability to:

  • Construct basic SELECT queries to fetch data from single or multiple tables.
  • Utilize WHERE clauses and basic filtering conditions.
  • Apply standard SQL functions, including character, numeric, and date functions.
  • Comprehend fundamental data types and conversion processes.
  • Execute basic JOIN operations.
  • Implement aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Understand and apply GROUP BY and HAVING.
  • Demonstrate practical experience with databases, data analysis, or reporting.

As an advanced-level course, it is expected that participants are already proficient in core SQL concepts before delving into complex topics like subqueries, advanced aggregation, set operators, and analytic/window functions.

Target Audience

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

Number of participants


Price per participant

Testimonials (4)

Provisional Upcoming Courses (Require 5+ participants)

Related Categories