adspace


Why is the basic difference between left join, right join and inner join?

Answer Posted / Ravi Kant

In SQL (including MySQL), JOIN operations are used to combine rows from two or more tables based on a related column. The main differences between LEFT JOIN, RIGHT JOIN, and INNER JOIN lie in the handling of non-matching values: - An INNER JOIN returns only the matching rows from both tables (no nulls). - A LEFT JOIN includes all the rows from the left table and the matched rows from the right table. If there are no matches, it returns NULL on the right side. - A RIGHT JOIN includes all the rows from the right table and the matched rows from the left table. If there are no matches, it returns NULL on the left side.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is current version of mysql?

1084


What is the current mysql version?

1105


How to Change a users password from unix shell.

1223


Which statement is used in a select query for partial matching?

1247