Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Functions for characters, numbers, and DateTime
  • Explicit versus implicit type conversion
  • Conversion utilities
  • Nested function structures
  • Retrieving current date and time via various functions
  • The CASE expression

Aggregating data with aggregate functions

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

Extracting data from multiple tables

  • Variations of joins
  • Utilizing table aliases
  • INNER JOIN
  • LEFT, RIGHT, and FULL OUTER JOINS

Set operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Situations and locations for employing subqueries
  • Single-row versus multi-row subqueries
  • Operators for single-row subqueries
  • Incorporating aggregate functions within subqueries
  • Multi-row subquery operators: IN, ALL, and ANY
  • Recursive subqueries

Analytic functions

  • Applications and use cases
  • 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

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

  • Compose basic SELECT statements to extract data from single or multiple tables.
  • Utilize WHERE clauses alongside standard filtering criteria.
  • Apply prevalent SQL functions, including character, numeric, and date operations.
  • Grasp fundamental data types and the process of type conversion.
  • Execute basic JOIN operations.
  • Employ aggregate functions like COUNT, SUM, AVG, MIN, and MAX.
  • Comprehend and implement GROUP BY and HAVING clauses.
  • Bring practical hands-on experience in database management, data analysis, or reporting.

As an advanced-level course, learners should already feel at ease with core SQL principles before delving into more intricate subjects such as subqueries, sophisticated aggregation, set operators, and analytic or window functions.

Target Audience

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

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories