What is a join? Explain the different types of mysql joins.
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 |
What is text?
Print 3 highest salary
Write a query to display even rows in student table using mysql?
Ondelete clause is specified with a.)Drop table b.)Delete command c.)Create table d.)Select command
What sql does mysql use?
What is mysql primary key?
What are the different table present in MYsql?
What is the use of mysql_fetch_array () function in php?
Is it possible to update a table value with out using update command?. if yes what is the reason, if no what is the reason?.
What could be the reason that the mysql statement 'select avg (salary) from emp' generates an inaccurate output?
what is the difference between between and in operators in mysql?
How do I select a table in mysql?