Advanced SQL: High Performance Relational Divisions

Advanced SQL: High Performance Relational Divisions

1h 35mAdvanced2021-05-24

Authors

Ami Levin

Ami Levin

Data Educator, Speaker, and Practitioner, SQL and RDM enthusiast

Course details

In this course, Ami Levin continues his Advanced SQL series with a new installment focused on conquering relational division challenges. As Ami points out, you’ve probably encountered relational division before, even if you’re unfamiliar with the term. Ami therefore starts with a background of relational division, including how relational algebra and the Cartesian product fit in to the picture. He then dives into SQL and shows the challenging aspects of relational division and three different techniques to solve them, highlighting the pros and cons of each approach. Along the way, Amin challenges you to write your own queries before walking through the methodology he uses. By the end of this course, you will gain valuable insight into how SQL works, be able to identify relational division challenges, and know how to implement the best solutions.

Skills covered

SQLDatabase AdministrationDatabase DevelopmentDatabase ManagementData AnalysisProgramming LanguagesData ScienceBusiness Analysis and StrategyBusiness Software and ToolsOpen SourceSoftware DevelopmentDeep Dive (X:Y)

Concepts

Introduction

  • Course introduction
  • Agenda
  • Setting expectations

What Is Relational Division

  • Relational algebra
  • Cartesian product
  • Relational division
  • The HR demo database

The Aggregation Technique

  • Relational division using aggregations
  • Challenge - Exact relational division
  • Solution - Exact relational division

The Set Operator Technique

  • Relational division using set operators
  • Challenge - Exact relational division
  • Solution - Exact relational division

The Nested Subqueries Technique

  • Relational division using nested subqueries
  • Challenge - Exact relational division
  • Solution - Exact relational division

Multiple Divisors and Zero Divisions

  • Multiple divisors
  • Zero divisions
  • Challenge - Exact division
  • Solution - Exact division

Conclusion

  • The pros and cons of these techniques
  • Next steps, feedback solicitation, and goodbye
40,000 Toman