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


Please Help Members By Posting Answers For Below Questions

Is mysql a scripting language?

636


How much does mysql enterprise cost?

664


What is pragma serially_reusable and why is it used?

621


How can you filter the duplicate data while retrieving records from the table?

642


State the differences between mongodb and mysql.

752






How can you make a database as your current database?

666


What does mysql flush privileges do?

665


how we will Show selected records sorted in an ascending (asc) or descending (desc).

733


How to create trigger in mysql workbench?

712


How internally data stores in MyISAM and INNODB table types?

2300


How to dump a table from a database.

737


What is deterministic in mysql?

691


How to show all records starting with the letters 'sonia' and the phone number '9876543210'

687


What are date and time intervals?

694


What is difference between mongodb and mysql?

646