What is a join? Explain the different types of mysql joins.

Answer Posted / hrindows@gmail.com

The SQL statement that is used to make a connection between two or more tables based on the matching columns is called a join. It is mainly used for complex queries.
Different types of SQL joins are mentioned below:
 Inner Join: It is a default join. It returns records when the values match in the joining tables.
 Left Outer Join: It returns all the records from the left table based on the matched records from the right table.
 Right Outer Join: It returns all the records from the right table based on the matched records from the left table.
 Full Outer Join: It returns all the records that match from the left or right table.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I start mysql server?

647


Is primary key auto increment?

701


Which datatype is used for email in mysql?

697


How to create a new table in mysql?

765


How do you shutdown a mysql database?

723


How to find the unique values if the value in the column is repeated?

743


explain GROUPBY & HAVING clause with examples.

2020


What is sql vs mysql?

731


How do I run mysql from command line?

703


How does triggers work in mysql?

692


How to filter data from a mysql database table with php?

642


What is the latest version of php and mysql?

877


What are different types of queries?

673


How do I uninstall mysql connector?

654


If we use sum function in mysql, does it return sum of that row or for that column?

711