Advanced SQL: High Performance Relational Divisions
1h 35mAdvanced2021-05-24
Authors

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
0. Introduction
- 01 - Course introduction
- 02 - Agenda
- 03 - Setting expectations
1. What Is Relational Division
- 04 - Relational algebra
- 05 - Cartesian product
- 06 - Relational division
- 07 - The HR demo database
2. The Aggregation Technique
- 08 - Relational division using aggregations
- 09 - Challenge - Exact relational division
- 10 - Solution - Exact relational division
3. The Set Operator Technique
- 11 - Relational division using set operators
- 12 - Challenge - Exact relational division
- 13 - Solution - Exact relational division
4. The Nested Subqueries Technique
- 14 - Relational division using nested subqueries
- 15 - Challenge - Exact relational division
- 16 - Solution - Exact relational division
5. Multiple Divisors and Zero Divisions
- 17 - Multiple divisors
- 18 - Zero divisions
- 19 - Challenge - Exact division
- 20 - Solution - Exact division
Conclusion
- 21 - The pros and cons of these techniques
- 22 - Next steps, feedback solicitation, and goodbye
Related courses
- Ruby on Rails: Get More From ActiveRecord
- Complete Guide to Oracle Database 23ai: From Beginner to Advanced
- SQL Server Machine Learning Services: Python
- Advanced Python: Practical Database Examples
- Faster pandas
- Distributed Databases with Apache Ignite
- End-to-End SQL Database Design and Optimization Project
- Using Snowflake with Tableau
Related learn paths
- Master Your Python Skills
- Master Python for Data Science
- Build Your Ruby on Rails Skills
- Develop Your NoSQL Skills
- Prepare for the AWS Certified Database - Specialty (DBS-C01) Exam
- A Developer's Guide to Google Gemini
- Advancing Your Azure Developer Skills: Exploring Complex Application Development
- CFI Financial Analysis and Modeling Professional Certificate