Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit data conversion
  • Application of conversion functions
  • Nested function usage
  • Retrieving current date and time via various functions
  • The CASE expression

Aggregating data with aggregate functions

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

Extracting data from multiple tables

  • Variations of join types
  • Table aliasing
  • INNER JOINs
  • LEFT, RIGHT, and FULL OUTER JOINs

Set operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Contexts for using subqueries
  • Single-row vs. multi-row subqueries
  • Single-row subquery operators
  • Incorporating 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
  • The STRING_AGG function
  • Statistical functions

Requirements

Enrollees are expected to possess a solid working knowledge of fundamental SQL and Microsoft SQL Server, demonstrating the ability to:

  • Construct basic SELECT queries to retrieve data from single or multiple tables.
  • Utilize WHERE clauses alongside basic filtering conditions.
  • Apply common SQL functions, including character, numeric, and date operations.
  • Grasp 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 clauses.
  • Bring practical experience in database management, data analysis, or reporting.

As an advanced-level program, attendees should feel confident in core SQL concepts before delving into complex topics like subqueries, sophisticated aggregation, set operators, and analytic/window functions.

Audience

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

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories