This project shows the demo of relational joins. It contains all required queries for the demo.
Types of relations joins are explained in this project with the code demo.
- INNER JOIN: returns only the rows where matches were found
- LEFT JOIN: returns matches and all rows from the left listed table
- RIGHT JOIN: returns matches and all rows from the right listed table
- FULL OUTER JOIN: returns matches and all rows from both tables
This queries have been created with the postgreSQL.
storage_sj
├── owners # varchar
├── item_1_sj # varchar
├── item_2_sj # varchar
├── item_3_sj # varchar
storage_ok
├── owners # varchar
├── item_1_ok # varchar
├── item_2_ok # varchar
├── item_3_ok # varchar
DDL Used: drop
and create
- Download the
Joins_demo.sql
file. - Follow the comments and run queries using any suitable IDE on the postgreSQL.