Update sql_2.md

main
Matt Huntington 2 years ago committed by GitHub
parent c4df771228
commit d644235853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save