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 structures
  • Retrieving current date and time using various functions
  • The CASE expression

Aggregating Data with Aggregate Functions

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

Retrieving Data 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

  • Placement and usage of subqueries
  • Single-row and multi-row subqueries
  • Operators for single-row subqueries
  • Employing aggregate functions within subqueries
  • Operators for multi-row subqueries: IN, ALL, ANY
  • Recursive subqueries

Analytic Functions

  • Application and use cases
  • Window functions and window types
  • Partitions
  • Ranking functions
  • LAG/LEAD functions
  • FIRST_VALUE/LAST_VALUE functions
  • The STRING_AGG function
  • Statistical functions

Requirements

Candidates should possess a solid command of fundamental SQL and Microsoft SQL Server concepts, specifically the ability to:

  • Construct basic SELECT statements to extract data from single or multiple tables.
  • Implement WHERE clauses and standard filtering criteria.
  • Utilize standard SQL functions, including character, numeric, and date-handling utilities.
  • Comprehend basic data types and type casting mechanisms.
  • Execute basic JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Interpret and apply GROUP BY and HAVING clauses.
  • Demonstrate hands-on experience with database management, data analysis, or reporting tools.

As an advanced-level program, this course assumes participants are already at ease with core SQL principles before advancing to complex subjects like subqueries, sophisticated aggregation, set operators, and analytic/window functions.

Audience

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

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories