|
|
|
@ -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
|
|
|
|
This is similar to `LEFT JOIN` but it displays any rows from the `companies` table that were previously left off
|
|
|
|
|
|
|
|
|
|
|
|
```sql
|
|
|
|
```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
|
|
|
|
This is basically a combination of `LEFT JOIN` and `RIGHT JOIN`. Display missing rows from *both* tables
|
|
|
|
|
|
|
|
|
|
|
|
|