Get in Touch
 Duration 14 hours

Course Outline

Refresher: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit data conversion
  • Utilization of conversion functions
  • Nested function structures
  • Retrieving current date and time via various functions
  • Implementation of CASE expressions

Data Aggregation via Aggregate Functions

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

Data Retrieval Across Multiple Tables

  • Exploring various types of joins
  • Use of table aliases
  • INNER JOIN operations
  • LEFT, RIGHT, and FULL OUTER JOINs

Set Operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Appropriate contexts for employing subqueries
  • Differences between single-row and multi-row subqueries
  • Operators for single-row subqueries
  • Incorporating aggregate functions within subqueries
  • Multi-row subquery operators including IN, ALL, and ANY
  • Recursive subquery patterns

Analytic Functions

  • Application scenarios
  • Window functions and window definitions
  • Data partitioning
  • Ranking functions
  • LAG and LEAD functions
  • FIRST_VALUE and LAST_VALUE functions
  • The STRING_AGG function
  • Statistical functions

Requirements

To fully benefit from this program, participants are expected to possess a solid working knowledge of fundamental SQL and Microsoft SQL Server, demonstrating proficiency in the following areas:

  • Constructing basic SELECT queries to extract data from single or multiple tables.
  • Utilizing WHERE clauses and elementary filtering criteria.
  • Applying standard SQL functions, including those for character, numeric, and date manipulation.
  • Comprehending core data types and their conversion processes.
  • Executing basic JOIN operations.
  • Employing aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Understanding and implementing GROUP BY and HAVING logic.
  • Having hands-on experience with databases, data analysis, or reporting tasks.

As an advanced-level curriculum, this course assumes participants are already confident with foundational SQL concepts before delving into complex subjects like subqueries, sophisticated aggregation, set operators, and analytic/window functions.

Target Audience

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

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories