1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-22 17:02:58 +02:00

Update index.md

Added a kind of join (Natural Join).
This commit is contained in:
Maharshi Choksi
2024-01-30 17:39:45 -07:00
committed by GitHub
parent 1eab06f1f5
commit ccbaa1fe6d

View File

@@ -55,4 +55,15 @@ WHERE A.CustomerID <> B.CustomerID
AND A.City = B.City;
```
## NATURAL JOIN:
The natural join is akin to an inner join, automatically linking two columns based on identical names.
Note: Columns should have same data type in both tables
```sql
SELECT *
FROM Customers
NATURAL JOIN Orders;
```
**Note**: JOINS can be used with SELECT, UPDATE, and DELETE statements.