SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente (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
 

Destacado

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
 

Destacado (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 a 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 a 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
 

Más de 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
 

Más de 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
 

Último

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Último (20)

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

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