Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit data conversion
  • Dedicated conversion functions
  • Nested function structures
  • Retrieving current date and time using various functions
  • CASE expressions

Aggregating data with aggregate functions

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

Extracting data from multiple tables

  • Various types of joins
  • Implementing table aliases
  • INNER JOIN operations
  • LEFT, RIGHT, and FULL OUTER JOINs

Set operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Situations where subqueries are applicable
  • Single-row versus multi-row subqueries
  • Operators for single-row subqueries
  • Employing aggregate functions within subqueries
  • Multi-row subquery operators: IN, ALL, ANY
  • Recursive subqueries

Analytic functions

  • Applications and use cases
  • Window functions and window types
  • Data partitioning
  • Ranking functions
  • LAG and LEAD functions
  • FIRST_VALUE and LAST_VALUE functions
  • The STRING_AGG function
  • Statistical functions

Requirements

Participants are expected to possess a solid working proficiency in basic SQL and Microsoft SQL Server, demonstrated by the ability to:

  • Construct fundamental SELECT queries to extract data from single or multiple tables.
  • Utilize WHERE clauses alongside basic filtering criteria.
  • Apply standard SQL functions, including those for character, numeric, and date operations.
  • Comprehend basic data types and conversion processes.
  • Perform basic JOIN operations.
  • Implement aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Understand and apply GROUP BY and HAVING clauses.
  • Have practical experience in database management, data analysis, or reporting.

As an advanced-level course, it assumes that participants are already comfortable with fundamental SQL concepts prior to tackling complex topics like subqueries, advanced aggregation, set operators, and analytic/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