What is the difference between cross joins and natural joins?

Started by Leopold, October 24, 2014, 10:04:21 AM

Previous topic - Next topic

Regan

Hi, I'd like to ask you a little problem, I hope you can help me, what is the difference between cross joins and natural joins? Thank you to inform me as soon as possible by return message.

Luka

CROSS JOIN creates all possible pairings of rows from two tables, whether they match or not. You don't use any join condition for a cross product, because the condition would always be true for any pairing.


NATURAL JOIN is just like an INNER JOIN, but it assumes the condition is equality and applies for all columns names that appear in both tables.