From 49afae37de6d9b5d64c4c621c4ddab00580de5aa Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 24 Oct 2023 13:57:38 -0500 Subject: [PATCH] Update sql_2.md --- SQL/lessons/sql_2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQL/lessons/sql_2.md b/SQL/lessons/sql_2.md index af0d010..4d1c2f3 100644 --- a/SQL/lessons/sql_2.md +++ b/SQL/lessons/sql_2.md @@ -160,13 +160,13 @@ SELECT * FROM people JOIN companies ON people.employer_id = companies.id Do the same as the previous example, but also display any rows from the `people` that were previously left off ```sql -SELECT * FROM people LEFT JOIN companies ON people.employer_id = companies.id +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