Skip to content

Commit

Permalink
Merge pull request #104 from mabel-dev/FIX/#102
Browse files Browse the repository at this point in the history
FIX/#102
  • Loading branch information
joocer authored May 9, 2022
2 parents 13c0ddb + 41329a5 commit f75b1ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/SQL Reference/08 Joins.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SELECT *
CROSS JOIN right_table;
~~~

<img src="../diagrams/cross-join.svg" width="400px">
<img src="https://github.com/mabel-dev/opteryx/blob/main/docs/diagrams/cross-join.svg" width="400px">

The size of the resultant dataset when using `CROSS JOIN` is length of the two datasets multiplied together (2 x 3 = 6, in the pictural example), which can easily result in extremely large datasets. When an alternate join approach is possible, it will almost always perform better than a `CROSS JOIN`.

Expand All @@ -41,7 +41,7 @@ SELECT *
ON left_table.column_name = right_table.column_name;
~~~

<img src="../diagrams/inner-join.svg" width="400px">
<img src="https://github.com/mabel-dev/opteryx/blob/main/docs/diagrams/inner-join.svg" width="400px">

## LEFT JOIN

Expand All @@ -61,7 +61,7 @@ SELECT *
ON left_table.column_name = right_table.column_name;
~~~

<img src="../diagrams/left-join.svg" width="400px">
<img src="https://github.com/mabel-dev/opteryx/blob/main/docs/diagrams/left-join.svg" width="400px">

## FULL JOIN

Expand All @@ -81,4 +81,4 @@ SELECT *
ON left_table.column_name = right_table.column_name;
~~~

<img src="../diagrams/full-join.svg" width="400px">
<img src="https://github.com/mabel-dev/opteryx/blob/main/docs/diagrams/full-join.svg" width="400px">

0 comments on commit f75b1ca

Please sign in to comment.