Webastor - Programming Tips and Tricks

Programming language => Sql => Topic started by: Regan on October 24, 2014, 10:04:21 AM

Title: What is the difference between cross joins and natural joins?
Post by: Regan on October 24, 2014, 10:04:21 AM
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.
Title: Re: Cross joins and natural joins
Post by: Luka on April 22, 2017, 02:39:46 PM
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.