Using MySQL INNER JOIN you can match rows in one table with another table and get result set that contain columns from both tables.
Suppose we have two tables user and order. So Using this join we will get the result row where userid from user table and userid from order table matches.
Read Also: Understanding MySQL LEFT JOIN
SELECT username, address, email FROM user U1 INNER JOIN order O2 ON U1.userid = O2.userid;
So here some user may be present in user table who did not order anything. In that case those users will not be visible.
This selects all rows from both tables as long as there is any match between the columns. If there are rows in the “U1” table that do not have matches in “O2”, these users will NOT be listed.
The coronavirus outbreak has drastically changed the way we live our lives. Yes, that's absolutely…
Sales and marketing teams help attract, convert, and retain customers to ensure an organization’s long-term…
Are you an owner of a small business who’s trying to come up with ways…
Introduction When patients bring me their lab reports, the confusion is almost always the same.…
Are you excited about remodeling your house after a long time? Perhaps if you're planning…
The practice of yoga teaches us to be present, patient and mindful of our decisions.…