SlideShare a Scribd company logo
1 of 11
Orange Coast Database Associates
Laguna Niguel, CA 92677
Slides.1@dhdursoassociates.com
Factory2000 case

Factory 2000 Case

Self Joins

1



A self join joins a table to itself
This is useful for hierarchical relationships
 Parts lists
 Employee relationships (manager/supervisor)
 Customer referrals
 Etc.



This presentation shows how to create a
query in Microsoft Access that joins a table to
itself

Factory 2000 Case

Self Joins

2



MgrNo is a foreign key in the employees table that refers to the table’s
own primary key, EmpNo.
We will create a query that lists each employee along with their
manager’s name.

Factory 2000 Case

Self Joins

3



This database is available on Box.com.
The presentation is on Slideshare.

Factory 2000 Case

Self Joins

4


Below is a screenshot of the sample
Employees table

Factory 2000 Case

Self Joins

5


Add the Employees table to the query designer twice. The
second time Access will give it the name Employees_1.

Factory 2000 Case

Self Joins

6


Right click on the title of the 2nd Employees table
and give it an alias of Managers.

Factory 2000 Case

Self Joins

7



Create an outer join relationship between the two tables. This will show the employee even if
they have no supervisor in the employees table (say the President).
Populate the fields to be shown.

Factory 2000 Case

Self Joins

8


Save the query and run it. Below are the
results from our sample table.

Factory 2000 Case

Self Joins

9




If desired the relationship of a table joined to
itself can be created as a permanent link
using the relationship designer.
The example we used in this presentation is a
one-to-many relationship (one employee
reports to one manager, one manager may
have several employees). Many to many
relationships such as for matrix management
are also possible by using a 3rd intersection
table.

Factory 2000 Case

Self Joins

10





This presentation showed how to create a
simple self join query in Access.
You should find many uses for this: reporting
relationships, parts lists, customer
referrals, etc.
Go to Slideshare to find related Microsoft
Access presentations.
[end self joins]

Factory 2000 Case

Self Joins

11

More Related Content

What's hot (19)

75864 sql
75864 sql75864 sql
75864 sql
 
Data Redundancy & Update Anomalies
Data Redundancy & Update AnomaliesData Redundancy & Update Anomalies
Data Redundancy & Update Anomalies
 
MySQL JOIN & UNION
MySQL JOIN & UNIONMySQL JOIN & UNION
MySQL JOIN & UNION
 
Oracle: Joins
Oracle: JoinsOracle: Joins
Oracle: Joins
 
Unions and joins in mysql
Unions and joins in mysqlUnions and joins in mysql
Unions and joins in mysql
 
MS Sql Server: Joining Databases
MS Sql Server: Joining DatabasesMS Sql Server: Joining Databases
MS Sql Server: Joining Databases
 
SQL JOIN
SQL JOINSQL JOIN
SQL JOIN
 
Sql joins inner join self join outer joins
Sql joins inner join self join outer joinsSql joins inner join self join outer joins
Sql joins inner join self join outer joins
 
BP208 Fabulous Feats with @Formula
BP208 Fabulous Feats with @FormulaBP208 Fabulous Feats with @Formula
BP208 Fabulous Feats with @Formula
 
SQL UNION
SQL UNIONSQL UNION
SQL UNION
 
Join query
Join queryJoin query
Join query
 
SQL Joinning.Database
SQL Joinning.DatabaseSQL Joinning.Database
SQL Joinning.Database
 
SQL
SQLSQL
SQL
 
SQL for ETL Testing
SQL for ETL TestingSQL for ETL Testing
SQL for ETL Testing
 
Oracle sql joins
Oracle sql joinsOracle sql joins
Oracle sql joins
 
Joins SQL Server
Joins SQL ServerJoins SQL Server
Joins SQL Server
 
Inner join and outer join
Inner join and outer joinInner join and outer join
Inner join and outer join
 
Worksheet Basics & Navigation - Excel 2013 Tutorial
Worksheet Basics & Navigation - Excel 2013 TutorialWorksheet Basics & Navigation - Excel 2013 Tutorial
Worksheet Basics & Navigation - Excel 2013 Tutorial
 
Excel-VBA
Excel-VBAExcel-VBA
Excel-VBA
 

Viewers also liked

SQL302 Intermediate SQL Workshop 1
SQL302 Intermediate SQL Workshop 1SQL302 Intermediate SQL Workshop 1
SQL302 Intermediate SQL Workshop 1Dan D'Urso
 
成衣服飾產業發展趨勢-創業懶人包-青年創業及圓夢網
成衣服飾產業發展趨勢-創業懶人包-青年創業及圓夢網成衣服飾產業發展趨勢-創業懶人包-青年創業及圓夢網
成衣服飾產業發展趨勢-創業懶人包-青年創業及圓夢網RICK Lin
 
Creating a Photo Story With Soundslides
Creating a Photo Story With SoundslidesCreating a Photo Story With Soundslides
Creating a Photo Story With SoundslidesRyan Thornburg
 
AIA101.0.Aia101
AIA101.0.Aia101AIA101.0.Aia101
AIA101.0.Aia101Dan D'Urso
 
AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1guest38bf
 
資訊服務業技術趨勢-創業懶人包-青年創業及圓夢網
資訊服務業技術趨勢-創業懶人包-青年創業及圓夢網資訊服務業技術趨勢-創業懶人包-青年創業及圓夢網
資訊服務業技術趨勢-創業懶人包-青年創業及圓夢網RICK Lin
 
SM-Plus Big Picture
SM-Plus Big PictureSM-Plus Big Picture
SM-Plus Big PictureCory Rhodes
 
Pharma Powerpoint 2
Pharma Powerpoint 2Pharma Powerpoint 2
Pharma Powerpoint 2guest4a9aba
 
Resume Portfolio Linkedin 01 2009
Resume Portfolio Linkedin 01 2009Resume Portfolio Linkedin 01 2009
Resume Portfolio Linkedin 01 2009pulamajor
 
Displays
DisplaysDisplays
Displaysspecfab
 
George Washington Teacher’s Institute
George Washington Teacher’s InstituteGeorge Washington Teacher’s Institute
George Washington Teacher’s Institutemoorebl
 
OpenRural's Guide to Digital Public Records in N.C.
OpenRural's Guide to Digital Public Records in N.C.OpenRural's Guide to Digital Public Records in N.C.
OpenRural's Guide to Digital Public Records in N.C.Ryan Thornburg
 
My Logo Portfolio
My Logo PortfolioMy Logo Portfolio
My Logo Portfoliobeth7865
 
El nazisme viscut des del bàndol alemany (clotet, conangla)
El nazisme viscut des del bàndol alemany (clotet, conangla)El nazisme viscut des del bàndol alemany (clotet, conangla)
El nazisme viscut des del bàndol alemany (clotet, conangla)JAVIER ALSINA GONZALEZ
 
Preparing Students
Preparing StudentsPreparing Students
Preparing StudentsKatie Turner
 

Viewers also liked (20)

SQL302 Intermediate SQL Workshop 1
SQL302 Intermediate SQL Workshop 1SQL302 Intermediate SQL Workshop 1
SQL302 Intermediate SQL Workshop 1
 
成衣服飾產業發展趨勢-創業懶人包-青年創業及圓夢網
成衣服飾產業發展趨勢-創業懶人包-青年創業及圓夢網成衣服飾產業發展趨勢-創業懶人包-青年創業及圓夢網
成衣服飾產業發展趨勢-創業懶人包-青年創業及圓夢網
 
Creating a Photo Story With Soundslides
Creating a Photo Story With SoundslidesCreating a Photo Story With Soundslides
Creating a Photo Story With Soundslides
 
Farrah bostic 5for5
Farrah bostic 5for5Farrah bostic 5for5
Farrah bostic 5for5
 
13 concurs d'aforismes
13 concurs d'aforismes13 concurs d'aforismes
13 concurs d'aforismes
 
AIA101.0.Aia101
AIA101.0.Aia101AIA101.0.Aia101
AIA101.0.Aia101
 
minggu 2
minggu 2minggu 2
minggu 2
 
Profit Hunters
Profit HuntersProfit Hunters
Profit Hunters
 
AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1
 
資訊服務業技術趨勢-創業懶人包-青年創業及圓夢網
資訊服務業技術趨勢-創業懶人包-青年創業及圓夢網資訊服務業技術趨勢-創業懶人包-青年創業及圓夢網
資訊服務業技術趨勢-創業懶人包-青年創業及圓夢網
 
SM-Plus Big Picture
SM-Plus Big PictureSM-Plus Big Picture
SM-Plus Big Picture
 
Pharma Powerpoint 2
Pharma Powerpoint 2Pharma Powerpoint 2
Pharma Powerpoint 2
 
Resume Portfolio Linkedin 01 2009
Resume Portfolio Linkedin 01 2009Resume Portfolio Linkedin 01 2009
Resume Portfolio Linkedin 01 2009
 
Displays
DisplaysDisplays
Displays
 
George Washington Teacher’s Institute
George Washington Teacher’s InstituteGeorge Washington Teacher’s Institute
George Washington Teacher’s Institute
 
OpenRural's Guide to Digital Public Records in N.C.
OpenRural's Guide to Digital Public Records in N.C.OpenRural's Guide to Digital Public Records in N.C.
OpenRural's Guide to Digital Public Records in N.C.
 
Vida rural .Herramientas y enseres.
Vida rural .Herramientas y enseres.Vida rural .Herramientas y enseres.
Vida rural .Herramientas y enseres.
 
My Logo Portfolio
My Logo PortfolioMy Logo Portfolio
My Logo Portfolio
 
El nazisme viscut des del bàndol alemany (clotet, conangla)
El nazisme viscut des del bàndol alemany (clotet, conangla)El nazisme viscut des del bàndol alemany (clotet, conangla)
El nazisme viscut des del bàndol alemany (clotet, conangla)
 
Preparing Students
Preparing StudentsPreparing Students
Preparing Students
 

Similar to Microsoft access self joins

Database system the final assignment for this course is an eight to
Database system the final assignment for this course is an eight toDatabase system the final assignment for this course is an eight to
Database system the final assignment for this course is an eight tomehek4
 
INFO-6053 Fall 2017 Project 3 Page 1 of 6 .docx
INFO-6053 Fall 2017 Project 3 Page 1 of 6 .docxINFO-6053 Fall 2017 Project 3 Page 1 of 6 .docx
INFO-6053 Fall 2017 Project 3 Page 1 of 6 .docxjaggernaoma
 
Design your own database
Design your own databaseDesign your own database
Design your own databaseFrank Katta
 
Database management system by Neeraj Bhandari ( Surkhet.Nepal )
Database management system by Neeraj Bhandari ( Surkhet.Nepal )Database management system by Neeraj Bhandari ( Surkhet.Nepal )
Database management system by Neeraj Bhandari ( Surkhet.Nepal )Neeraj Bhandari
 
Configure Intranet and Team Sites with SharePoint Server 2013
Configure Intranet and Team Sites with SharePoint Server 2013Configure Intranet and Team Sites with SharePoint Server 2013
Configure Intranet and Team Sites with SharePoint Server 2013Vinh Nguyen
 
Cis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry universityCis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry universitylhkslkdh89009
 
IST365 - Project Deliverable #3Create the corresponding relation.docx
IST365 - Project Deliverable #3Create the corresponding relation.docxIST365 - Project Deliverable #3Create the corresponding relation.docx
IST365 - Project Deliverable #3Create the corresponding relation.docxpriestmanmable
 
Selje_SSMS for the Accidental DBA.pdf
Selje_SSMS for the Accidental DBA.pdfSelje_SSMS for the Accidental DBA.pdf
Selje_SSMS for the Accidental DBA.pdfEric Selje
 
Creating Database 2010
Creating Database 2010Creating Database 2010
Creating Database 2010tgushi12
 
Workload Management with MicroStrategy Software and IBM DB2 9.5
Workload Management with MicroStrategy Software and IBM DB2 9.5Workload Management with MicroStrategy Software and IBM DB2 9.5
Workload Management with MicroStrategy Software and IBM DB2 9.5BiBoard.Org
 
Microsoft excel auditing features & techniques
Microsoft excel auditing features & techniquesMicrosoft excel auditing features & techniques
Microsoft excel auditing features & techniquesOnlineCompliance Panel
 
Suppose you are the information technology (IT) manager for an IT
Suppose you are the information technology (IT) manager for an IT Suppose you are the information technology (IT) manager for an IT
Suppose you are the information technology (IT) manager for an IT lisandrai1k
 
2005_604_Wagner_ppr
2005_604_Wagner_ppr2005_604_Wagner_ppr
2005_604_Wagner_pprMary Wagner
 
Work Environment Paper
Work Environment PaperWork Environment Paper
Work Environment PaperEmily Jones
 
Microsoft Dynamics CRM - Customization and Configuration Training Online Cour...
Microsoft Dynamics CRM - Customization and Configuration Training Online Cour...Microsoft Dynamics CRM - Customization and Configuration Training Online Cour...
Microsoft Dynamics CRM - Customization and Configuration Training Online Cour...Little Logic
 
Assignment 5Understanding SQL100 points (Questions 1 to 7 eac.docx
Assignment 5Understanding SQL100 points (Questions 1 to 7 eac.docxAssignment 5Understanding SQL100 points (Questions 1 to 7 eac.docx
Assignment 5Understanding SQL100 points (Questions 1 to 7 eac.docxssuser562afc1
 

Similar to Microsoft access self joins (20)

Database system the final assignment for this course is an eight to
Database system the final assignment for this course is an eight toDatabase system the final assignment for this course is an eight to
Database system the final assignment for this course is an eight to
 
INFO-6053 Fall 2017 Project 3 Page 1 of 6 .docx
INFO-6053 Fall 2017 Project 3 Page 1 of 6 .docxINFO-6053 Fall 2017 Project 3 Page 1 of 6 .docx
INFO-6053 Fall 2017 Project 3 Page 1 of 6 .docx
 
Design your own database
Design your own databaseDesign your own database
Design your own database
 
Week 9.docx
Week 9.docxWeek 9.docx
Week 9.docx
 
Database management system by Neeraj Bhandari ( Surkhet.Nepal )
Database management system by Neeraj Bhandari ( Surkhet.Nepal )Database management system by Neeraj Bhandari ( Surkhet.Nepal )
Database management system by Neeraj Bhandari ( Surkhet.Nepal )
 
Configure Intranet and Team Sites with SharePoint Server 2013
Configure Intranet and Team Sites with SharePoint Server 2013Configure Intranet and Team Sites with SharePoint Server 2013
Configure Intranet and Team Sites with SharePoint Server 2013
 
Cis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry universityCis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry university
 
IST365 - Project Deliverable #3Create the corresponding relation.docx
IST365 - Project Deliverable #3Create the corresponding relation.docxIST365 - Project Deliverable #3Create the corresponding relation.docx
IST365 - Project Deliverable #3Create the corresponding relation.docx
 
T6
T6T6
T6
 
Selje_SSMS for the Accidental DBA.pdf
Selje_SSMS for the Accidental DBA.pdfSelje_SSMS for the Accidental DBA.pdf
Selje_SSMS for the Accidental DBA.pdf
 
ASP.NET MVC3 RAD
ASP.NET MVC3 RADASP.NET MVC3 RAD
ASP.NET MVC3 RAD
 
Sql Lab 4 Essay
Sql Lab 4 EssaySql Lab 4 Essay
Sql Lab 4 Essay
 
Creating Database 2010
Creating Database 2010Creating Database 2010
Creating Database 2010
 
Workload Management with MicroStrategy Software and IBM DB2 9.5
Workload Management with MicroStrategy Software and IBM DB2 9.5Workload Management with MicroStrategy Software and IBM DB2 9.5
Workload Management with MicroStrategy Software and IBM DB2 9.5
 
Microsoft excel auditing features & techniques
Microsoft excel auditing features & techniquesMicrosoft excel auditing features & techniques
Microsoft excel auditing features & techniques
 
Suppose you are the information technology (IT) manager for an IT
Suppose you are the information technology (IT) manager for an IT Suppose you are the information technology (IT) manager for an IT
Suppose you are the information technology (IT) manager for an IT
 
2005_604_Wagner_ppr
2005_604_Wagner_ppr2005_604_Wagner_ppr
2005_604_Wagner_ppr
 
Work Environment Paper
Work Environment PaperWork Environment Paper
Work Environment Paper
 
Microsoft Dynamics CRM - Customization and Configuration Training Online Cour...
Microsoft Dynamics CRM - Customization and Configuration Training Online Cour...Microsoft Dynamics CRM - Customization and Configuration Training Online Cour...
Microsoft Dynamics CRM - Customization and Configuration Training Online Cour...
 
Assignment 5Understanding SQL100 points (Questions 1 to 7 eac.docx
Assignment 5Understanding SQL100 points (Questions 1 to 7 eac.docxAssignment 5Understanding SQL100 points (Questions 1 to 7 eac.docx
Assignment 5Understanding SQL100 points (Questions 1 to 7 eac.docx
 

More from Dan D'Urso

SQL201S Accelerated Introduction to MySQL Queries
SQL201S Accelerated Introduction to MySQL QueriesSQL201S Accelerated Introduction to MySQL Queries
SQL201S Accelerated Introduction to MySQL QueriesDan D'Urso
 
LCD201d Database Diagramming with Lucidchart
LCD201d Database Diagramming with LucidchartLCD201d Database Diagramming with Lucidchart
LCD201d Database Diagramming with LucidchartDan D'Urso
 
Database Normalization
Database NormalizationDatabase Normalization
Database NormalizationDan D'Urso
 
VIS201d Visio Database Diagramming
VIS201d Visio Database DiagrammingVIS201d Visio Database Diagramming
VIS201d Visio Database DiagrammingDan D'Urso
 
PRJ101a Project 2013 Accelerated
PRJ101a Project 2013 AcceleratedPRJ101a Project 2013 Accelerated
PRJ101a Project 2013 AcceleratedDan D'Urso
 
PRJ101xl Project Libre Basic Training
PRJ101xl Project Libre Basic TrainingPRJ101xl Project Libre Basic Training
PRJ101xl Project Libre Basic TrainingDan D'Urso
 
Introduction to coding using Python
Introduction to coding using PythonIntroduction to coding using Python
Introduction to coding using PythonDan D'Urso
 
Stem conference
Stem conferenceStem conference
Stem conferenceDan D'Urso
 
SQL200A Microsoft Access SQL Design
SQL200A Microsoft Access SQL DesignSQL200A Microsoft Access SQL Design
SQL200A Microsoft Access SQL DesignDan D'Urso
 
SQL302 Intermediate SQL
SQL302 Intermediate SQLSQL302 Intermediate SQL
SQL302 Intermediate SQLDan D'Urso
 
AIN106 Access Reporting and Analysis
AIN106 Access Reporting and AnalysisAIN106 Access Reporting and Analysis
AIN106 Access Reporting and AnalysisDan D'Urso
 
SQL302 Intermediate SQL Workshop 3
SQL302 Intermediate SQL Workshop 3SQL302 Intermediate SQL Workshop 3
SQL302 Intermediate SQL Workshop 3Dan D'Urso
 
SQL302 Intermediate SQL Workshop 2
SQL302 Intermediate SQL Workshop 2SQL302 Intermediate SQL Workshop 2
SQL302 Intermediate SQL Workshop 2Dan D'Urso
 
Course Catalog
Course CatalogCourse Catalog
Course CatalogDan D'Urso
 
SQL212 Oracle SQL Manual
SQL212 Oracle SQL ManualSQL212 Oracle SQL Manual
SQL212 Oracle SQL ManualDan D'Urso
 
SQL201W MySQL SQL Manual
SQL201W MySQL SQL ManualSQL201W MySQL SQL Manual
SQL201W MySQL SQL ManualDan D'Urso
 
SQL206 SQL Median
SQL206 SQL MedianSQL206 SQL Median
SQL206 SQL MedianDan D'Urso
 
SQL202.3 Accelerated Introduction to SQL Using SQL Server Module 3
SQL202.3 Accelerated Introduction to SQL Using SQL Server Module 3SQL202.3 Accelerated Introduction to SQL Using SQL Server Module 3
SQL202.3 Accelerated Introduction to SQL Using SQL Server Module 3Dan D'Urso
 
SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2
SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2
SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2Dan D'Urso
 

More from Dan D'Urso (20)

SQL201S Accelerated Introduction to MySQL Queries
SQL201S Accelerated Introduction to MySQL QueriesSQL201S Accelerated Introduction to MySQL Queries
SQL201S Accelerated Introduction to MySQL Queries
 
LCD201d Database Diagramming with Lucidchart
LCD201d Database Diagramming with LucidchartLCD201d Database Diagramming with Lucidchart
LCD201d Database Diagramming with Lucidchart
 
Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
 
VIS201d Visio Database Diagramming
VIS201d Visio Database DiagrammingVIS201d Visio Database Diagramming
VIS201d Visio Database Diagramming
 
PRJ101a Project 2013 Accelerated
PRJ101a Project 2013 AcceleratedPRJ101a Project 2013 Accelerated
PRJ101a Project 2013 Accelerated
 
PRJ101xl Project Libre Basic Training
PRJ101xl Project Libre Basic TrainingPRJ101xl Project Libre Basic Training
PRJ101xl Project Libre Basic Training
 
Introduction to coding using Python
Introduction to coding using PythonIntroduction to coding using Python
Introduction to coding using Python
 
Stem conference
Stem conferenceStem conference
Stem conference
 
SQL200A Microsoft Access SQL Design
SQL200A Microsoft Access SQL DesignSQL200A Microsoft Access SQL Design
SQL200A Microsoft Access SQL Design
 
SQL302 Intermediate SQL
SQL302 Intermediate SQLSQL302 Intermediate SQL
SQL302 Intermediate SQL
 
AIN106 Access Reporting and Analysis
AIN106 Access Reporting and AnalysisAIN106 Access Reporting and Analysis
AIN106 Access Reporting and Analysis
 
SQL302 Intermediate SQL Workshop 3
SQL302 Intermediate SQL Workshop 3SQL302 Intermediate SQL Workshop 3
SQL302 Intermediate SQL Workshop 3
 
SQL302 Intermediate SQL Workshop 2
SQL302 Intermediate SQL Workshop 2SQL302 Intermediate SQL Workshop 2
SQL302 Intermediate SQL Workshop 2
 
Course Catalog
Course CatalogCourse Catalog
Course Catalog
 
SQL212 Oracle SQL Manual
SQL212 Oracle SQL ManualSQL212 Oracle SQL Manual
SQL212 Oracle SQL Manual
 
SQL201W MySQL SQL Manual
SQL201W MySQL SQL ManualSQL201W MySQL SQL Manual
SQL201W MySQL SQL Manual
 
AIN100
AIN100AIN100
AIN100
 
SQL206 SQL Median
SQL206 SQL MedianSQL206 SQL Median
SQL206 SQL Median
 
SQL202.3 Accelerated Introduction to SQL Using SQL Server Module 3
SQL202.3 Accelerated Introduction to SQL Using SQL Server Module 3SQL202.3 Accelerated Introduction to SQL Using SQL Server Module 3
SQL202.3 Accelerated Introduction to SQL Using SQL Server Module 3
 
SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2
SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2
SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2
 

Recently uploaded

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 

Recently uploaded (20)

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 

Microsoft access self joins

  • 1. Orange Coast Database Associates Laguna Niguel, CA 92677 Slides.1@dhdursoassociates.com Factory2000 case Factory 2000 Case Self Joins 1
  • 2.   A self join joins a table to itself This is useful for hierarchical relationships  Parts lists  Employee relationships (manager/supervisor)  Customer referrals  Etc.  This presentation shows how to create a query in Microsoft Access that joins a table to itself Factory 2000 Case Self Joins 2
  • 3.   MgrNo is a foreign key in the employees table that refers to the table’s own primary key, EmpNo. We will create a query that lists each employee along with their manager’s name. Factory 2000 Case Self Joins 3
  • 4.   This database is available on Box.com. The presentation is on Slideshare. Factory 2000 Case Self Joins 4
  • 5.  Below is a screenshot of the sample Employees table Factory 2000 Case Self Joins 5
  • 6.  Add the Employees table to the query designer twice. The second time Access will give it the name Employees_1. Factory 2000 Case Self Joins 6
  • 7.  Right click on the title of the 2nd Employees table and give it an alias of Managers. Factory 2000 Case Self Joins 7
  • 8.   Create an outer join relationship between the two tables. This will show the employee even if they have no supervisor in the employees table (say the President). Populate the fields to be shown. Factory 2000 Case Self Joins 8
  • 9.  Save the query and run it. Below are the results from our sample table. Factory 2000 Case Self Joins 9
  • 10.   If desired the relationship of a table joined to itself can be created as a permanent link using the relationship designer. The example we used in this presentation is a one-to-many relationship (one employee reports to one manager, one manager may have several employees). Many to many relationships such as for matrix management are also possible by using a 3rd intersection table. Factory 2000 Case Self Joins 10
  • 11.    This presentation showed how to create a simple self join query in Access. You should find many uses for this: reporting relationships, parts lists, customer referrals, etc. Go to Slideshare to find related Microsoft Access presentations. [end self joins] Factory 2000 Case Self Joins 11