Relational databases, such as MySQL, give you the ability to
organize data into separate tables, but link the tables together
to form relationships when necessary.
MySQL joins give you the ability to link data together in a MySQL
database. A join is a way to get columns from more than one table
into a single set of results. This is usually much more efficient
than trying to perform multiple queries and combining them later.
This article looks at the different types of joins that can be
performed in MySQL and goes over the different options you have
to combine data from multiple tables: inner joins, left and right
joins, and full outer joins.
A base example of MySQL joins
To further our understanding of joins, we’ll create a simple
database of grocery items, each item having a category.
Categories …
[Read more]