Skip to main content
added 144 characters in body
Source Link
HUGO-DEV
  • 945
  • 9
  • 20

Joins are more easily explained with an example:

enter image description here

To simulate persons and emails stored in separate tables,

Table A and Table B are joined by Table_A.id = Table_B.name_id

Inner Join

enter image description here

Only matched ids' rows are shown.

Common Outer Join Are Left and Right JoinOuter Joins

enter image description here

Matched ids and not matched rows for Table A are shown.

enter image description here

Matched ids and not matched rows for Table B are shown.

enter image description here Matched ids and not matched rows from both Tables are shown.

Note: OuterFull outer join is not available on MySQL

Joins are more easily explained with an example:

enter image description here

To simulate persons and emails stored in separate tables,

Table A and Table B are joined by Table_A.id = Table_B.name_id

enter image description here

Only matched ids' rows are shown.

Common Outer Join Are Left and Right Join

enter image description here

Matched ids and not matched rows for Table A are shown.

enter image description here

Matched ids and not matched rows for Table B are shown.

Note: Outer join is not available on MySQL

Joins are more easily explained with an example:

enter image description here

To simulate persons and emails stored in separate tables,

Table A and Table B are joined by Table_A.id = Table_B.name_id

Inner Join

enter image description here

Only matched ids' rows are shown.

Outer Joins

enter image description here

Matched ids and not matched rows for Table A are shown.

enter image description here

Matched ids and not matched rows for Table B are shown.

enter image description here Matched ids and not matched rows from both Tables are shown.

Note: Full outer join is not available on MySQL

Source Link
HUGO-DEV
  • 945
  • 9
  • 20

Joins are more easily explained with an example:

enter image description here

To simulate persons and emails stored in separate tables,

Table A and Table B are joined by Table_A.id = Table_B.name_id

enter image description here

Only matched ids' rows are shown.

Common Outer Join Are Left and Right Join

enter image description here

Matched ids and not matched rows for Table A are shown.

enter image description here

Matched ids and not matched rows for Table B are shown.

Note: Outer join is not available on MySQL