Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
SQL JOINS Masterclass: Learn to join 2 to 15 Tables
Rating: 4.1 out of 5(55 ratings)
499 students

SQL JOINS Masterclass: Learn to join 2 to 15 Tables

Learn SQL Joins from scratch. Join 2, 3, 4, 5, 6, 7, 8, 9... and several tables! Become a true SQL Expert!
Last updated 6/2024
English
English [Auto],

What you'll learn

  • Learn to join 1 to 15 tables using SQL
  • Understand advanced and complex SQL Join
  • Create compelling report using SQL
  • Advance your data analytics skill
  • Learn from expert with many exercises and solutions

Course content

5 sections296 lectures5h 10m total length
  • Course Content Walkthrough2:57

    Master SQL joins by working through practical, example-driven lessons that cover joining multiple tables across schemas, with select, concatenation, aggregate, limit, fetch, and offset.

  • Demo Lecture - 1 (A Sample of what to expect)2:39

    Explore how to join 2 to 15 tables in SQL using practical demos, case-based data shaping, and aggregates, preparing you to manage complex queries.

  • Demo Lecture - 1 Code0:22
  • Demo Lecture - 2 (A Sample of what to expect)2:52
  • Demo Lecture - 2 Code0:27
  • Resource - Creating Databases and Inserting Data7:27

    Create and insert data into multiple databases with Postgres, set up tables, and run queries to prepare data for practicing SQL joins across 2 to 15 tables.

  • Resource - AB Database - Create & Insert0:03
  • Resource - PersonCash Database - Create & Insert0:03
  • Resource - Northwind Database - Create0:03
  • Resource - Northwind Database - Insert0:03
  • Resource - DVD Rental Database - Create0:03
  • Resource - DVD Rental Database - Insert0:03
  • Select - All columns0:59

    Learn how to select all columns from the employees table, using the select all approach to retrieve every field and view the full employees output.

  • Select - All columns - Code
  • Select - Few Columns1:01

    Select a few columns—first name, last name, address, and country—from employees, and arrange their order for output.

  • Select - Few Columns - Code0:01
  • Select - Old Price and New Price2:00
  • Select - Old Price and New Price - Code0:02
  • Select - Report with Comment1:51

    Explore selecting multiple columns from the customers table to build a report with a comment column, using aliases to clearly label each field.

  • Select - Report with Comment - Code0:01
  • Select - Distinct1:07
  • Select - Distinct - Code0:01
  • Alias - SQL Alias2:21
  • Alias - SQL Alias - Code0:02
  • Reporting with Concatenation - Title and First Name2:19
  • Reporting with Concatenation - Title and First Name - Code0:04
  • Reporting with Concatenation - Customer and Location1:25

    Explore reporting with concatenation in SQL joins by combining company name, city, and country from the customers table into a single location string using pipes.

  • Reporting with Concatenation - Customer and Location - Code0:04
  • Reporting with Concatenation - Customer and Location II0:40

    Concatenate customer names with their city and country to display locations clearly, and remove extra delimiters like commas or pipes, replacing them with a space for clean results.

  • Reporting with Concatenation - Customer and Location II - Code0:02
  • Reporting with Concatenation - Total Value of Products In Stock1:53

    Calculate the total value of each product in stock by multiplying unit price by units in stock, and display the product name and value using concatenation with a dollar sign.

  • Reporting with Concatenation - Total Value of Products In Stock - Code0:04
  • Report Formatting - Introduction3:25
  • Report Formatting - Understanding Format Exercise & Solution 12:10
  • Report Formatting - Understanding Format Exercise & Solution 1 - Code0:06
  • Report Formatting - Understanding Format Exercise & Solution 21:28

    Master report formatting in SQL using the format function to control spaces before and after the square, applying the 15-space convention demonstrated in formatting exercise 2.

  • Report Formatting - Understanding Format Exercise & Solution 2 - Code0:01
  • Report Formatting - Understanding Format Exercise & Solution 31:05

    Apply sql joins masterclass concepts to formatting by displaying employees' last names in a single column, using the format method instead of concatenation on the employees table.

  • Report Formatting - Understanding Format Exercise & Solution 3 - code0:01
  • Report Formatting - Understanding Format Exercise & Solution 40:49

    Learn how to format a report query by displaying the fourth and last names from the employees table, building a full name, and presenting the exercise solution.

  • Report Formatting - Understanding Format Exercise & Solution 4 - Code0:02
  • Report Formatting - Understanding Format Exercise & Solution 50:36
  • Report Formatting - Understanding Format Exercise & Solution 5 - Code0:02
  • Report Formatting - Understanding Format Exercise & Solution 61:47
  • Report Formatting - Understanding Format Exercise & Solution 6 - Code0:19
  • Round - Amount Formatting Exercise & Solution 10:54
  • Round - Amount Formatting Exercise & Solution 1 - Code0:01
  • Round - Amount Formatting Exercise & Solution 20:56
  • Round - Amount Formatting Exercise & Solution 2 - Code0:01
  • Round - Amount Formatting Exercise & Solution 30:37
  • Round - Amount Formatting Exercise & Solution 3 - Code0:01
  • Round - Amount Formatting Exercise & Solution 42:10
  • Round - Amount Formatting Exercise & Solution 4 - Code0:03
  • Order By - Ascending Exercise & Solution 11:24
  • Order By - Ascending Exercise & Solution 1 - Code0:01
  • Order By - Ascending and Descending Exercise & Solution 21:34
  • Order By - Ascending and Descending Exercise & Solution 2 - Code0:02
  • Order By - Ascending and Ascending Exercise & Solution 30:48

    Explore how order by ascending sorts results in sql queries. Apply the ascending exercise with an example using orders and customer_id, and review the solution.

  • Order By - Ascending and Ascending Exercise & Solution 3 - Code0:01
  • Where - Sales Managers' Details0:53
  • Where - Sales Managers' Details - Code0:01
  • Where - Owners' Details1:50
  • Where - Owners' Details - Code0:02
  • Where - Specific Order ID0:46
  • Where - Specific Order ID - Code0:01
  • Where - Searching for a Product with Price0:53
  • Where - Searching for a Product with Price - Code0:01
  • Where - Searching for a Product with Price II0:53

    Explore using the where clause to search for products by price, selecting the product name and price from the products table and filtering for a specific unit price.

  • Where - Searching for a Product with Price II - Code0:01
  • Where - Searching for a Customer with ID0:39
  • Where - Searching for a Customer with ID - Code0:01
  • Where - Products above 32.81:24

    Identify products with unit prices above 32.8 by querying the product table, selecting product names and unit prices, and sorting results in ascending order.

  • Where - Products above 32.8 - Code0:02
  • Where - Products less than 100:42

    Identify product names with prices less than 10 using the where clause. Apply this price filter to retrieve the matching products in your SQL joins masterclass workflow.

  • Where - Products less than 10 - Code0:02
  • Where - Products whose price are 40 and above0:26

    Select products with unit prices of 40 and above using a where filter. Learn how to apply the 40 or greater condition to retrieve matching items.

  • Where - Products whose price are 40 and above - Code0:02
  • Where - Products within a range1:25

    Explore how to use the where clause to filter products within a range, applying less than and greater than conditions to refine results from tables.

  • Where - Products within a range - Code0:02
  • Where - Products - Restocking1:56

    Identify product names from the product table that are due for restocking by comparing units in stock to the reorder level, and sort by unit price.

  • Where - Products - Restocking - Code0:02
  • Where - Order amount of 10540 or above1:14
  • Where - Order amount of 10540 or above - Code0:04
  • Where - None Mr2:25

    Learn how to filter employees with not conditions in SQL, using not equal to values and combining NOT with comparisons to retrieve the desired records.

  • Where - None Mr - Code0:04
  • Where - None Sales Representative1:27
  • Where - None Sales Representative - Code0:04
  • Where - Price Between two figures1:26

    Learn to filter products by unit price using the between operator for values 18 to 19, and compare with greater than or equal to and less than or equal to.

  • Where - Price Between two figures - Code0:05
  • Where - Not Between0:37

    Master the where not between clause to filter products by price ranges, identifying records whose prices fall outside specified bounds.

  • Where - Not Between - Code0:03
  • Where - Two Between1:23

    Learn to filter data with the between operator in the where clause, using ranges like 2 to 3 and 50 to 53 to select specific values.

  • Where - Two Between - Code0:04
  • Where - Customers from certain cities1:01
  • Where - Customers from certain cities - Code0:02
  • Where - Every other customers except0:55
  • Where - Every other customers except - Code0:02
  • Where - Customers From France1:21

    Use a where clause to identify customers from France by city, highlighting Lyon and other cities across countries, and understand how country and city data shape results.

  • Where - Customers From France - Code0:02
  • Where - Sales Manager & Vice President Details1:23

    Explore querying employee data to retrieve sales manager or vice president details using a where clause with or logic, and why some role combinations return no results.

  • Where - Sales Manager & Vice President Details - Code0:02
  • Where - Names of certain products with given prices0:42
  • Where - Names of certain products with given prices - Code0:02
  • Where - Searching for a product given certain details1:19

    Filter products by unit price between 9 (inclusive) and 10 (exclusive) while excluding product_id 45, using logical and to combine the search conditions.

  • Where - Searching for a product given certain details - Code0:02
  • Where - Searching for employee given certain details0:47

    Use the where clause to search for an employee by details such as region or country in sql queries. Explore the caption's perfect world query to guide precise results.

  • Where - Searching for employee given certain details - Code0:05
  • Where - Null Region0:47

    Explore how the where clause handles null values in multi-table joins, and learn techniques to diagnose zero output scenarios and produce reliable results across 2 to 15 tables.

  • Where - Null Region - Code0:02
  • Where - Not Null Region0:25

    Filter customers by country using the where clause, focusing on UK and not null region constraints, as part of the SQL joins masterclass.

  • Where - Not Null Region - Code0:02
  • Wildcard - Contains "Sales"1:38
  • Wildcard - Phone number starts with 1710:54

    Explore how to use a wildcard to filter phone numbers that start with 171 in a customers table, leveraging SQL joins and the like operator to select relevant rows.

  • Wildcard - Phone number starts with 171 - Code0:01
  • Wildcard - Contact ends with...1:01
  • Wildcard - Contact ends with... - Code0:01
  • Wildcard - Searching with letter1:00

    Master wildcard searches by letter in the customers table, using like and percent to find names with a specific second letter or pattern, such as Blackwater.

  • Wildcard - Searching with letter - Code0:01
  • Wildcard - Searching for a company0:30

    Use wildcards to search for company names across joined tables. Learn techniques for querying and retrieving company names when joining 2 to 15 tables.

  • Wildcard - Searching for a company - Code0:01
  • Wildcard - Searching for a city0:27

    Search for a city using wildcard queries to retrieve customer details across joined tables. Explore using the city column to filter results and understand joining logic.

  • Wildcard - Searching for a city - Code0:01
  • Wildcard - Searching for a city with starting and end letters0:33

    Master wildcard searches in sql to find city names that begin and end with specific letters, and apply these patterns to fetch customer details with location data.

  • Wildcard - Searching for a city with starting and end letters - Code0:01
  • Wildcard - NOT1:01

    Explore filtering with wildcard patterns to identify company names that do not start with specific letters, using not operators to refine results.

  • Wildcard - NOT - Code0:02
  • Aggregate - Introduction0:49

    Explore aggregate functions such as min, max, count, avg, and sum, including distinct values. Learn about array and string helpers that return sets of values.

  • Aggregate - Min()0:36
  • Aggregate - Min() - Code0:01
  • Aggregate - Min() - First Shipment1:10

    Use aggregate min() with joins to determine the first shipment date by combining related tables, retrieving the earliest ship date such as 1996-07-10.

  • Aggregate - Min() - First Shipment - Code0:01
  • Aggregate - Max()0:23
  • Aggregate - Max() - Code0:01
  • Aggregate - Count()0:52

    Learn to count the number of products using the aggregate count() on the products table. Use the unique product ID to avoid duplicates and run a basic select query.

  • Aggregate - Count() - Code
  • Aggregate - Count() - Number of Orders1:05

    Learn to use the aggregate count() to find the number of orders in 1997 within a date range, applying SQL count to the orders data.

  • Aggregate - Count() - Number of Orders- Code0:02
  • Aggregate - Avg()0:30
  • Aggregate - Avg() - Code
  • Aggregate - Avg() - Purchase0:36
  • Aggregate - Avg() - Purchase - Code0:01
  • Aggregate - Sum()0:41

    Master the sum() aggregate to compute the total stock across the products table. Learn how to tally the overall quantity of products in stock and understand per-product versus all-products totals.

  • Aggregate - Sum() - Code
  • Aggregate - Sum() - Total number of stock0:52
  • Aggregate - Sum() - Total number of stock - Code
  • Aggregate - SUM() - Total Sales1:13
  • Aggregate - SUM() - Total Sales - Code0:02
  • Aggregate - ARRAY_AGG()1:05
  • Aggregate - ARRAY_AGG() - Code0:01
  • Aggregate - STRING_AGG() - List of Customers1:39
  • Aggregate - STRING_AGG() - List of Customers - Code0:01
  • Aggregate - ARRAY_AGG() - Customer Names0:20

    Aggregate the customer names from the customers table using ARRAY_AGG() to return a memory-format list for months.

  • Aggregate - ARRAY_AGG() - Customer Names - Code
  • Understanding Limit, Fetch and Offset1:38

    Learn how limit, fetch, and offset constrain and page through query results, compare their behaviors, and set a starting point for retrieving rows in SQL.

  • Limit - First Row1:01
  • Limit - First Row - Code0:02
  • Limit - First Three Rows0:46
  • Limit - First Three Rows - Code0:02
  • Offset & Limit - Third to Fifth Rows0:54
  • Offset & Limit - Third to Fifth Rows - Code0:03
  • Offset & Limit - The Most Expensive Product3:40
  • Offset & Limit - The Most Expensive Product - Code0:04
  • Offset & Limit - Productivity6:51
  • Offset & Limit - Productivity - Code0:18

Requirements

  • Basic SQL knowledge

Description

SQL is a powerful tool for data storage. The ability to analyze the data is a great skill to acquire. What is greater is your ability to use complex SQL queries to fetch out information from multiple tables. That is what this course is all about. In this course, you are going to be acquitted with advanced SQL skills to join multiple tables together and write better reports. This course is going to make Data Analysis (using PostgreSQL) easy for your career advancement.

Everything you will ever need in SQL JOIN for data analytics is covered in this course. This includes but is not limited to:

Types of Join
Cross Join
Inner Join
Left Join
Right Join
Full Join
Natural Join
Self Join
Intersect
Union
Except

To understand the above and work seamlessly with JOIN the following were first introduced:

Select
Select Distinct
Concat
Format
Where
Wildcard
Aggregate
Limit
Fetch
Offset
and many more

This course will take to perform join within a single table and joining multiple tables. At the end of this course, you will be able to join any number of tables at a go!


WHY THIS COURSE? 

  • This course is not rushed over.
    It starts from the very basics of SQL Join to advanced multiple table join

  • This course is taught by an active data scientist with several years of experience

  • This course is taught by examples with several exercises and solutions

  • You will not only know the theory but learn to build your own report using SQL

  • All the students taught by the instructor have moved higher in their careers

  • No question asked by students is not answered within 48 hours. There is no too simple question or too hard question. All questions are taken very seriously by the instructor


You don't need to take my words for it. See what existing students have to say about my courses:


"This is a great course!  It is deep. The instructor didn't leave any stone unturned. It gave me a better understanding of the more advanced concept. Above all, I love the style of teaching with challenges and solutions." - Paul Min

"It's been an amazing time having to learn and understand how python works." - Ana Gil

"Well explained and easy to understand. This is indeed commendable and I appreciate your efforts." - Joanita Anderson

You can check the comment sections of all my courses and see for yourself.


I am not only confident you will love this course, but I am also confident you will spread the love to others. Hence, we are offering you 30 days' FULL money-back. What are you waiting for? Click Buy now and let's get started.


WHO IS THIS COURSE FOR? 

  • Database administrator

  • Developers

  • Data Scientist

  • Programmer

  • Those with interest in SQL and Data analytics

By the end of this course, you will be very fluent in SQL queries, confident in facing any complex schema and write great reports.



Who this course is for:

  • Anyone who aspire to advanced in data analytics using SQL