From d644235853ac19d8fcfd762248d1e0a72337eb85 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 24 Oct 2023 13:56:16 -0500 Subject: [PATCH] Update sql_2.md --- SQL/lessons/sql_2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQL/lessons/sql_2.md b/SQL/lessons/sql_2.md index 4ea91bf..af0d010 100644 --- a/SQL/lessons/sql_2.md +++ b/SQL/lessons/sql_2.md @@ -166,7 +166,7 @@ SELECT * FROM people LEFT JOIN companies ON people.employer_id = companies.id This is similar to `LEFT JOIN` but it displays any rows from the `companies` table that were previously left off ```sql -SELECT * FROM people RIGHT JOIN companies ON people.employer_id = companies.id ``` +SELECT * FROM people RIGHT JOIN companies ON people.employer_id = companies.id ``` This is basically a combination of `LEFT JOIN` and `RIGHT JOIN`. Display missing rows from *both* tables