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 function usage
  • Retrieving current date and time via various functions
  • CASE expressions

Aggregating data with aggregate functions

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

Extracting data from multiple tables

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

Set operations

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Scenarios and placements for subqueries
  • Single-row versus multi-row subqueries
  • Operators for single-row subqueries
  • Incorporating aggregate functions in subqueries
  • Multi-row subquery operators: IN, ALL, ANY
  • Recursive subqueries

Analytic functions

  • Application of analytic functions
  • Window functions and window types
  • Partitions
  • Ranking functions
  • LAG and LEAD functions
  • FIRST_VALUE and LAST_VALUE functions
  • STRING_AGG function
  • Statistical functions

Requirements

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

  • Compose basic SELECT statements to extract data from single or multiple tables.
  • Implement WHERE clauses and standard filtering conditions.
  • Utilize common SQL functions, including those for character manipulation, numeric operations, and date handling.
  • Comprehend basic data types and necessary conversions.
  • Execute basic JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Understand and apply GROUP BY and HAVING clauses.
  • Hold practical experience with database management, data analysis, or reporting tasks.

As an advanced-level course, participants should already be comfortable with core SQL concepts before delving into complex topics such as subqueries, advanced aggregation, set operators, and analytic or window functions.

Target Audience

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

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories