what is JOIN? Give example & types of join?
Answer Posted / antergen suvi danis
Join Syntax:
table_references:
table_reference [, table_reference] ...
table_reference:
table_factor
| join_table
table_factor:
tbl_name [[AS] alias] [index_hint)]
| table_subquery [AS] alias
| ( table_references )
| { OJ table_reference LEFT OUTER JOIN table_reference
ON conditional_expr }
join_table:
table_reference [INNER | CROSS] JOIN table_factor
[join_condition]
| table_reference STRAIGHT_JOIN table_factor
| table_reference STRAIGHT_JOIN table_factor ON
conditional_expr
| table_reference {LEFT|RIGHT} [OUTER] JOIN table_reference
join_condition
| table_reference NATURAL [{LEFT|RIGHT} [OUTER]] JOIN
table_factor
join_condition:
ON conditional_expr
| USING (column_list)
index_hint:
USE {INDEX|KEY} [FOR JOIN] (index_list)
| IGNORE {INDEX|KEY} [FOR JOIN] (index_list)
| FORCE {INDEX|KEY} [FOR JOIN] (index_list)
index_list:
index_name [, index_name] ...
Types of join are,
* Inner Join
* Left Join or Left Outer Join
* Right Join or Right Outer Join
* Equi join
* Non Equi Join
* Natural Join
* Straight Join
| Is This Answer Correct ? | 16 Yes | 15 No |
Post New Answer View All Answers
Is postgresql better than mysql?
Write a query to count the number of rows of a table in mysql.
How many sql dml commands are supported by 'mysql'?
How to display odd rows in student table in mysql?
How do I install and use mysql?
What is orm in mysql?
What are the advantages/disadvantages of mysql and php?
What are enums used for in mysql?
What are the 5 r's of managing behaviors?
What is difference between mysql and mysql server?
Is pdo faster than mysqli?
What does do in mysql?
What do you mean by % and _ in the LIKE statement?
What is the purpose of using ifnull() function?
How to escape special characters in sql statements?