Skip to content

Update cheatsheet.md #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions querying_relational_databases/cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## SQL JOINs

JOINs merge related data from multiple tables together in to result set.
JOINs merge related data from multiple tables together into a result set.

The two most common types of joins are:

Expand Down Expand Up @@ -106,7 +106,7 @@ SELECT <column>, <column> FROM <table 1> <set operation> SELECT <column>, <colum

### UNION Examples

Unions return all distinct values from both data sets with no duplicates.
UNIONs return all distinct values from both data sets with no duplicates.

Get a list of unique restaurants from both north and south malls.

Expand All @@ -125,7 +125,7 @@ SELECT evening_class FROM school_1 UNION SELECT evening_class FROM school_2

### UNION ALL

Union all returns all values from both data sets – with duplicates.
UNION ALL returns all values from both data sets – with duplicates.

Get a list of all names for boys and girls and order them by name.

Expand Down