Skip to main content
deleted 204 characters in body
Source Link
Vlad Mihalcea
  • 156.1k
  • 85
  • 600
  • 985

As I explained in this article, theAThe CROSS JOIN is meant to generate a Cartesian Product.

The ranks and suits tablesThe ranks and suits tables

For instance, assuming we have a one-to-many table relationshipone-to-many table relationship between a parent post and a child post_comment tables that look as follows:

Basically, you can think of the INNER JOININNER JOIN as a filtered CROSS JOIN where only the matching records are kept in the final result set.

For more details about how INNER JOIN works, check out this article as well.

As I explained in this article, the CROSS JOIN is meant to generate a Cartesian Product.

The ranks and suits tables

For instance, assuming we have a one-to-many table relationship between a parent post and a child post_comment tables that look as follows:

Basically, you can think of the INNER JOIN as a filtered CROSS JOIN where only the matching records are kept in the final result set.

For more details about how INNER JOIN works, check out this article as well.

AThe CROSS JOIN is meant to generate a Cartesian Product.

The ranks and suits tables

For instance, assuming we have a one-to-many table relationship between a parent post and a child post_comment tables that look as follows:

Basically, you can think of the INNER JOIN as a filtered CROSS JOIN where only the matching records are kept in the final result set.

added 136 characters in body
Source Link
Vlad Mihalcea
  • 156.1k
  • 85
  • 600
  • 985

For more details about how INNER JOIN works, check out this article as well.

For more details about how INNER JOIN works, check out this article as well.

added 5 characters in body
Source Link
Vlad Mihalcea
  • 156.1k
  • 85
  • 600
  • 985

A Cartesian Product takes two sets A and B and generates all possible combinationspermutations of pair records from two given sets of data.

will generate all possible combinationspermutations of ranks and suitessuites pairs:

A Cartesian Product takes two sets A and B and generates all possible combinations of records from two given sets of data.

will generate all possible combinations of ranks and suites:

A Cartesian Product takes two sets A and B and generates all possible permutations of pair records from two given sets of data.

will generate all possible permutations of ranks and suites pairs:

Source Link
Vlad Mihalcea
  • 156.1k
  • 85
  • 600
  • 985
Loading