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
USINGClause - ✅ Join with the
ONClause - ✅ 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

