Learn Python
Learn Data Structure & Algorithm
Learn Numpy
Learn Pandas
Learn Matplotlib
Learn Seaborn
Learn Statistics
Learn Math
Learn MATLAB
Learn Machine learning
Learn Github
Learn OpenCV
Learn Deep Learning
MySQL Introduction
MySQL Setup
MySQL Operators
MySQL Basic Works
MySQL Create Table
MySQL insert and get values
MySQL Condition
MySQL GROUP BY
MySQL Case
MySQL sorting and calculate avg,sum,count
MySQL Update
MySQL Time
MySQL String
MySQL Rollback & Commit
MySQL Join and Concatenate
MySQL Index
MySQL Date
MySQL View
MYSQL With Python
Learn MongoDB
Learn Web scraping
Learn Excel
Learn Power BI
Learn Tableau
Learn Docker
Learn Hadoop
1. INNER JOIN: This method returns only the matching records from the both tables.
2. LEFT JOIN: This method returns all the records from the left table, and only the matched records
from the right table.
3. RIGHT JOIN: This method returns all the records from the right table, and only the matched records
from the left table.
4. FULL OUTER JOIN:
This method returns all the records when there is a match in either left table or right table.
Let's see in the example:
First table:
The second table name is city and columns are uid and city. Here uid is the primary key column.
Second table:
Table name is personal_doc and the columns are uid, name, percentage, age, gender, and city. Here uid is the
foreign key column.
You can also use "WHERE" to perform join:
Suppose there is a city name New York.
To see values for New York:
First table:
The table name is personal_doc and the columns are id, name, percentage, age, gender, and city. Here city is
the foreign key column
Second table:
The second table named city and columns are cid and city. Here cid is the primary key column.
Third table:
Third table named is other_doc and there you have columns like roll and department. Here roll is the PRIMARY
key column