Types of joins in database

1. Inner Join: Returns only the rows that have matching values in both tables.

2. Left Join: Returns all rows from the left table, and matching rows from the right table. If there's no match, NULL values are returned for the right table.
3. Right Join: Opposite of Left Join, returns all rows from the right table, and matching rows from the left table. If there's no match, NULL values are returned for the left table.
4. Full Outer Join: Returns all rows when there is a match in either left or right table. If there's no match, NULL values are returned for the other table.
5. Self Join: Joins a table with itself to compare values within the same table.
6. Cross Join: Cartesian product of the two tables, returns all possible combinations of rows.
7. Natural Join: Joins tables based on columns with the same name and values, automatically matching the columns.