Skip to content

Examples of SQL join techniques applied in real-world analytics projects, including inner join, left join, right join, full join, and self join.

Notifications You must be signed in to change notification settings

Awais11227/oracle-sql-joins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”— Oracle SQL Joins

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.

πŸ“˜ Topics Covered

The lab covers 12 types of joins with full solutions and comments:

  1. βœ… Natural Join
  2. βœ… Join with the USING Clause
  3. βœ… Join with the ON Clause
  4. βœ… Self-Join
  5. βœ… Non-Equijoins
  6. βœ… LEFT OUTER Join
  7. βœ… RIGHT OUTER Join
  8. βœ… FULL OUTER Join
  9. βœ… CROSS Join (Cartesian Product)
  10. βœ… Three-Way Join using ON
  11. βœ… Join with Additional Conditions
  12. βœ… Table Aliases with Joins

🧾 File Details

  • joins_lab.sql – Contains all queries with:
    • Question numbers and headings as comments
    • Clear formatting and table aliases
    • Educational purpose queries with expected logic

πŸ› οΈ Tools Used

  • πŸ’Ύ Oracle SQL Developer
  • 🧩 Oracle Server (Live/Local)
  • πŸ’» Structured Query Language (SQL)

πŸŽ“ Learning Outcomes

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

πŸ“Έ Screenshots (Optional)

image

image


πŸ“Ž How to Use

  1. Clone this repository
git clone https://github.com/YourUsername/oracle-sql-joins-lab.git

!

πŸ“¬ Connect with Me
πŸ‘€ Linkedin : Awais Manzoor
πŸ“§ awaismanzor125@gmail.com


About

Examples of SQL join techniques applied in real-world analytics projects, including inner join, left join, right join, full join, and self join.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published