This repository contains practical SQL queries demonstrating various types of table joins using Oracle Database. It's designed as a hands-on lab to help students and professionals understand how to retrieve and relate data across multiple tables.
The lab covers 12 types of joins with full solutions and comments:
- β Natural Join
- β
Join with the
USING
Clause - β
Join with the
ON
Clause - β Self-Join
- β Non-Equijoins
- β LEFT OUTER Join
- β RIGHT OUTER Join
- β FULL OUTER Join
- β CROSS Join (Cartesian Product)
- β
Three-Way Join using
ON
- β Join with Additional Conditions
- β Table Aliases with Joins
joins_lab.sql
β Contains all queries with:- Question numbers and headings as comments
- Clear formatting and table aliases
- Educational purpose queries with expected logic
- πΎ Oracle SQL Developer
- π§© Oracle Server (Live/Local)
- π» Structured Query Language (SQL)
By completing this lab, you will be able to:
- Write SQL queries that combine data from multiple tables
- Understand INNER, OUTER, and CROSS joins
- Use
USING
,ON
, and aliases to simplify code - Perform advanced queries like self-joins and non-equijoins
- Clone this repository
git clone https://github.com/YourUsername/oracle-sql-joins-lab.git
!
π¬ Connect with Me
π€ Linkedin : Awais Manzoor
π§ awaismanzor125@gmail.com