Update index.md

Added a kind of join (Natural Join).
pull/5114/head
Maharshi Choksi 10 months ago committed by GitHub
parent 1eab06f1f5
commit ccbaa1fe6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      src/data/roadmaps/sql/content/106-join-queries/index.md

@ -55,4 +55,15 @@ WHERE A.CustomerID <> B.CustomerID
AND A.City = B.City; 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. **Note**: JOINS can be used with SELECT, UPDATE, and DELETE statements.

Loading…
Cancel
Save