SlideShare a Scribd company logo
Members
1) Farooq Mian
2) Rukhsana
3) Maryem
Table of Contents
• Inner Join
• Left Join
• Right Join
• Full Join
Topic :- Joins
Well often tables are related to each other with keys.
SQL joins are used to query data from two or more
tables, Based a relationship between certain
columns in these tables.
Join : Return rows when there is at least one match in
both tables.
Left Join : Returns all rows from the left table, even if
there are no matches in the right table.
Right Join : Returns all rows from the right table, even if
there are no matches in the left table.
Full Join : Return rows when there is a match in one of
the tables.
Perons Table
Orders Table
O_id Order_no P_id
1 77895 2
2 44441 3
3 99992 2
4 56789 3
5 113379 1
6 12355 1
P_id LastName FirstName Address City
1 Mian Farooq Shadman Lahore
2 Nawaz Fawad Walton Lahore
3 Mian Ahmed Gulberg Karachi
4 Ali Asad DHA Lahore

More Related Content

PPTX
Linked lists
PPTX
RefWorks-Excel-RefWorks - deleting duplicates made easy?
PPTX
Documents and formatting
PPTX
A19 1 square roots
PPT
Chapter 2 part 1(Database System)
PPTX
Create table relationships
PPTX
Link_List.pptx
PPT
Sub join a query optimization algorithm for flash-based database
Linked lists
RefWorks-Excel-RefWorks - deleting duplicates made easy?
Documents and formatting
A19 1 square roots
Chapter 2 part 1(Database System)
Create table relationships
Link_List.pptx
Sub join a query optimization algorithm for flash-based database

Viewers also liked (18)

PPTX
SQL Join Basic
PPTX
Relational Algebra,Types of join
PPTX
Database Introduction - Join Query
PPT
Scrum Model
PPTX
joins in database
PDF
Joins in databases
PPTX
Database - Normalization
PDF
Everything about Database JOINS and Relationships
PPTX
Database Normalization
PPTX
Normalization in Database
PPT
Normalization of database tables
PPT
Types Of Join In Sql Server - Join With Example In Sql Server
PPTX
Database Normalization
PDF
A Join Operator for Property Graphs
PPT
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
PPT
Normalization of database_tables_chapter_4
PDF
Distributed_Database_System
SQL Join Basic
Relational Algebra,Types of join
Database Introduction - Join Query
Scrum Model
joins in database
Joins in databases
Database - Normalization
Everything about Database JOINS and Relationships
Database Normalization
Normalization in Database
Normalization of database tables
Types Of Join In Sql Server - Join With Example In Sql Server
Database Normalization
A Join Operator for Property Graphs
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Normalization of database_tables_chapter_4
Distributed_Database_System
Ad

Similar to Database Join (20)

PPSX
Join query
PPTX
Querying_with_T-SQL_-_03 (1).pptx
PPTX
Querying_with_T-SQL_-_03.pptx
PPTX
MS Sql Server: Joining Databases
PPTX
MS SQLSERVER:Joining Databases
PPTX
MS SQL SERVER: Joining Databases
PPTX
Inner Join In Ms Access
PPTX
SQL JOINS- Reena P V
PPT
joins IN DATA BASE MANAGEMENT SYSTEMSppt
PPTX
Sql server ___________session_11-12(joins)
PPTX
Sql joins
ODT
Sql joins
PDF
SQL JOINS
PPTX
PDF
SQL JOINS
PPTX
Practical Joins Algorithms in database system
PPTX
PPTX
Join in SQL - Inner, Self, Outer Join
PPTX
types of SQL Joins
PPTX
join_SQL000000000000000000000000000000000.pptx
Join query
Querying_with_T-SQL_-_03 (1).pptx
Querying_with_T-SQL_-_03.pptx
MS Sql Server: Joining Databases
MS SQLSERVER:Joining Databases
MS SQL SERVER: Joining Databases
Inner Join In Ms Access
SQL JOINS- Reena P V
joins IN DATA BASE MANAGEMENT SYSTEMSppt
Sql server ___________session_11-12(joins)
Sql joins
Sql joins
SQL JOINS
SQL JOINS
Practical Joins Algorithms in database system
Join in SQL - Inner, Self, Outer Join
types of SQL Joins
join_SQL000000000000000000000000000000000.pptx
Ad

More from Farooq Mian (8)

PPT
PPT
Theory of Automata
PPTX
Basic Web Page, Twitter, Facebook introduction
PPTX
Business Report Writing
DOCX
Vehicle Parking System Project
DOCX
SDLC of Shareef Oxygen Company
PPTX
Basic C concepts.
PPTX
Traffic Problems in Cities.
Theory of Automata
Basic Web Page, Twitter, Facebook introduction
Business Report Writing
Vehicle Parking System Project
SDLC of Shareef Oxygen Company
Basic C concepts.
Traffic Problems in Cities.

Recently uploaded (20)

PPTX
Database Infoormation System (DBIS).pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
Computer network topology notes for revision
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPT
Reliability_Chapter_ presentation 1221.5784
PDF
Mega Projects Data Mega Projects Data
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PDF
Lecture1 pattern recognition............
PDF
annual-report-2024-2025 original latest.
PPTX
Business Acumen Training GuidePresentation.pptx
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PDF
.pdf is not working space design for the following data for the following dat...
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Database Infoormation System (DBIS).pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx
Clinical guidelines as a resource for EBP(1).pdf
Computer network topology notes for revision
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Reliability_Chapter_ presentation 1221.5784
Mega Projects Data Mega Projects Data
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Lecture1 pattern recognition............
annual-report-2024-2025 original latest.
Business Acumen Training GuidePresentation.pptx
ISS -ESG Data flows What is ESG and HowHow
Business Ppt On Nestle.pptx huunnnhhgfvu
.pdf is not working space design for the following data for the following dat...
Galatica Smart Energy Infrastructure Startup Pitch Deck
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb

Database Join

  • 1. Members 1) Farooq Mian 2) Rukhsana 3) Maryem Table of Contents • Inner Join • Left Join • Right Join • Full Join Topic :- Joins
  • 2. Well often tables are related to each other with keys. SQL joins are used to query data from two or more tables, Based a relationship between certain columns in these tables.
  • 3. Join : Return rows when there is at least one match in both tables. Left Join : Returns all rows from the left table, even if there are no matches in the right table. Right Join : Returns all rows from the right table, even if there are no matches in the left table. Full Join : Return rows when there is a match in one of the tables.
  • 4. Perons Table Orders Table O_id Order_no P_id 1 77895 2 2 44441 3 3 99992 2 4 56789 3 5 113379 1 6 12355 1 P_id LastName FirstName Address City 1 Mian Farooq Shadman Lahore 2 Nawaz Fawad Walton Lahore 3 Mian Ahmed Gulberg Karachi 4 Ali Asad DHA Lahore