SlideShare une entreprise Scribd logo
1  sur  19
Intro to Join and Relate
Prof. Dr. Sajid Rashid Ahmad
sajidpu@yahoo.com
Atiqa Ijaz Khan _ Demonstrator
atiqa_ss09@yahoo.com
JOIN
(ArcGIS 10.1)
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
2
Need for Join…!
• Most database design guidelines promote organizing your database into multiple
tables — each focused on a specific topic — instead of one large table containing
all the necessary fields.
• Having multiple tables prevents duplicating information in the database, because
you store the information only once in one table.
• When you need information that isn't in the current table, you can link the two
tables together.
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
3
With the help of ArcGIS
• ArcGIS allows to join or relate the records from a layer to a table etc.
• This can be done using a “Key” said to be the “Primary Key”.
• Joining can only be done, if one is having atleast one “Common Field” in both of
them.
• This is only temporarily.
• And it is stored only when one saves the Arc Map document. (.mxd)
• If one doesn’t store the Arc Map document, it will show NO join, next time opened
with the same file.
• Otherwise, “Export” the file with the records for being permanent.
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
4
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
5
Joining on the basis of
Common Field
Join in Arc GIS
• The input and target table should be either in the same directory or saved with
relative paths in order to establish the relationship on next opening of Arc Map.
• Otherwise, Repair the paths to re-new the relationship.
• The common field MUST have the “Same Data Type”.
• It is not necessary to have the same field name.
• It could have following relationships:
• One to one
• Many to one
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
6
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
7
Above:
One-to-one Relationship
Lower:
Many-to-one Relationship
Types of Join
• It could be join on the basis of:
• Non-spatial information (Attribute data)
• On the basis of common field or attribute data.
• With another layer or with table (Excel or Text file)
• Having common key or primary key.
• Spatial information (Locational data)
• All of the shapefiles can be joined with each other.
• Point to Line to Polygon (vice versa and within each other)
• All of the pairs are given different options.
• It will create new output file for every join.
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
8
Options available within Spatial join of Data in Arc GIS
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
9
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
10
LEFT:
Attribute Data (From
table)
RIGHT:
Locational Data (From
another layer)
Managing & Removing Joined Tables
• Managing Tables
• Right-click a layer or table in the table of contents and click Properties. Click the
Joins & Relates tab.
• All the joins for the layer or table are listed on the left side of the dialog box. You
can add new joins, remove existing ones, and view properties about the joins.
• Removing Tables
• In the table of contents, right-click the layer containing a join you want to remove.
• You can also click the Options button on an open table window.
Point to Joins and Relates, point to Remove Join(s), and click the join you want to
remove.
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
11
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
12
Joins & Relate
Relate in Arc GIS
• One table can only be joined with one layer at a time.
• One can keep:
• All Records, or (Default option)
• Only matching Records
• One can remove Join, anytime one wants.
• Join does not alter the original table.
• All the attribute operations are valid upon the fields that are joined together.
• As the joined table simply can be opened as “Attribute Table” in Arc Map.
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
13
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
14
Above:
Keeping all records
Lower:
Keep only matching records
RELATE
(ArcGIS 10.1)
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
15
• It only represents the relationship between two classes.
• Relate does not append the data to the layers permanently like join.
• It offers two relationships:
• One to many
• Many to many
• Relates are bi-directional. That means:
• Layer and table can be accessed cross each other.
• Table will be listed under the layer.
• Layer can be accessed by the table also.
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
16
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
17
How to Relate and Access it
Important Facts
• “Same Table” cannot be Relate to “Same Layer”, already Joined with that table.
• It will give error.
• Reverse can possible.
• “Same Table” can be Join to “Same Layer”, already Related with that table.
• During the “Join or Relate”, the table cannot save the edits on it. Unless it is
saved with another name.
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
18
Tuesday, March 3, 2015Institute of Geology, University of the Punjab
19

Contenu connexe

Tendances

International Journal of Computational Science and Information Technology (IJ...
International Journal of Computational Science and Information Technology (IJ...International Journal of Computational Science and Information Technology (IJ...
International Journal of Computational Science and Information Technology (IJ...ijcsity
 
PRINCIPLE COMPONENT ANALYSIS.pptx
PRINCIPLE COMPONENT ANALYSIS.pptxPRINCIPLE COMPONENT ANALYSIS.pptx
PRINCIPLE COMPONENT ANALYSIS.pptxASHUTOSHGAURAV10
 
Introduction to excel - application to statistics
Introduction to excel - application to statisticsIntroduction to excel - application to statistics
Introduction to excel - application to statisticszavenger
 
International Journal of Computational Science and Information Technology (IJ...
International Journal of Computational Science and Information Technology (IJ...International Journal of Computational Science and Information Technology (IJ...
International Journal of Computational Science and Information Technology (IJ...ijcsity
 
Data Visualization
Data VisualizationData Visualization
Data Visualizationritesh_11
 
What i want to study
What i want to studyWhat i want to study
What i want to studysteveherrera
 
16 making charts
16 making charts16 making charts
16 making chartsMrQaz996
 
EnviroInsite training workshop - Database fundamentals
EnviroInsite training workshop - Database fundamentalsEnviroInsite training workshop - Database fundamentals
EnviroInsite training workshop - Database fundamentalsBruce Jacobs
 

Tendances (11)

International Journal of Computational Science and Information Technology (IJ...
International Journal of Computational Science and Information Technology (IJ...International Journal of Computational Science and Information Technology (IJ...
International Journal of Computational Science and Information Technology (IJ...
 
PRINCIPLE COMPONENT ANALYSIS.pptx
PRINCIPLE COMPONENT ANALYSIS.pptxPRINCIPLE COMPONENT ANALYSIS.pptx
PRINCIPLE COMPONENT ANALYSIS.pptx
 
Introduction to excel - application to statistics
Introduction to excel - application to statisticsIntroduction to excel - application to statistics
Introduction to excel - application to statistics
 
International Journal of Computational Science and Information Technology (IJ...
International Journal of Computational Science and Information Technology (IJ...International Journal of Computational Science and Information Technology (IJ...
International Journal of Computational Science and Information Technology (IJ...
 
Application of Stack, Link list , and Queue in Programming .
Application of Stack, Link list , and Queue in Programming .Application of Stack, Link list , and Queue in Programming .
Application of Stack, Link list , and Queue in Programming .
 
Data Visualization
Data VisualizationData Visualization
Data Visualization
 
20090813MEETING
20090813MEETING20090813MEETING
20090813MEETING
 
What i want to study
What i want to studyWhat i want to study
What i want to study
 
16 making charts
16 making charts16 making charts
16 making charts
 
UTSlides
UTSlidesUTSlides
UTSlides
 
EnviroInsite training workshop - Database fundamentals
EnviroInsite training workshop - Database fundamentalsEnviroInsite training workshop - Database fundamentals
EnviroInsite training workshop - Database fundamentals
 

Similaire à Lec_8_Intro to Join and Relate

Lec_12_Intro to Geodatabase and Topology
Lec_12_Intro to Geodatabase and TopologyLec_12_Intro to Geodatabase and Topology
Lec_12_Intro to Geodatabase and TopologyAtiqa khan
 
Create table relationships
Create table relationshipsCreate table relationships
Create table relationshipsDastan Kamaran
 
Create table relationships
Create table relationshipsCreate table relationships
Create table relationshipsDastan Kamaran
 
Applied GIS - 3022.pptx
Applied GIS - 3022.pptxApplied GIS - 3022.pptx
Applied GIS - 3022.pptxtemesgenabebe1
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms accessjigeno
 
research methodology presentation-6.pptx
research methodology presentation-6.pptxresearch methodology presentation-6.pptx
research methodology presentation-6.pptxvidyasagarsharma0001
 

Similaire à Lec_8_Intro to Join and Relate (6)

Lec_12_Intro to Geodatabase and Topology
Lec_12_Intro to Geodatabase and TopologyLec_12_Intro to Geodatabase and Topology
Lec_12_Intro to Geodatabase and Topology
 
Create table relationships
Create table relationshipsCreate table relationships
Create table relationships
 
Create table relationships
Create table relationshipsCreate table relationships
Create table relationships
 
Applied GIS - 3022.pptx
Applied GIS - 3022.pptxApplied GIS - 3022.pptx
Applied GIS - 3022.pptx
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 
research methodology presentation-6.pptx
research methodology presentation-6.pptxresearch methodology presentation-6.pptx
research methodology presentation-6.pptx
 

Plus de Atiqa khan

2019_Wingdings Font - Times New Roman
2019_Wingdings Font  - Times New Roman2019_Wingdings Font  - Times New Roman
2019_Wingdings Font - Times New RomanAtiqa khan
 
English Urdu Font in Windows 10 Keyboard
English Urdu Font in Windows 10 KeyboardEnglish Urdu Font in Windows 10 Keyboard
English Urdu Font in Windows 10 KeyboardAtiqa khan
 
2018 Solutions to Sleep Screen
2018 Solutions to Sleep Screen2018 Solutions to Sleep Screen
2018 Solutions to Sleep ScreenAtiqa khan
 
2017 Thesis Check List Doc
2017 Thesis Check List Doc2017 Thesis Check List Doc
2017 Thesis Check List DocAtiqa khan
 
2017 Terms in GIS Town Planning
2017 Terms in GIS Town Planning2017 Terms in GIS Town Planning
2017 Terms in GIS Town PlanningAtiqa khan
 
2017 Pictorial Differences GIS & RS
2017 Pictorial Differences GIS & RS2017 Pictorial Differences GIS & RS
2017 Pictorial Differences GIS & RSAtiqa khan
 
2017 Response Letter to a Journal
2017 Response Letter to a Journal2017 Response Letter to a Journal
2017 Response Letter to a JournalAtiqa khan
 
2017 How to write Author Biography for Journal
2017 How to write Author Biography for Journal2017 How to write Author Biography for Journal
2017 How to write Author Biography for JournalAtiqa khan
 
2017 Information about NUST Engineering
2017 Information about NUST Engineering2017 Information about NUST Engineering
2017 Information about NUST EngineeringAtiqa khan
 
2017 Glossary Of Cartographic Terms
2017 Glossary Of Cartographic Terms2017 Glossary Of Cartographic Terms
2017 Glossary Of Cartographic TermsAtiqa khan
 
2017 Types Of Orbits Brief Explanation
2017 Types Of Orbits Brief Explanation2017 Types Of Orbits Brief Explanation
2017 Types Of Orbits Brief ExplanationAtiqa khan
 
2017 IST Undergraduates Admission Guide for Fall
2017 IST Undergraduates Admission Guide for Fall2017 IST Undergraduates Admission Guide for Fall
2017 IST Undergraduates Admission Guide for FallAtiqa khan
 
2017 Editable Thesis Checklist PDF
2017 Editable Thesis Checklist PDF2017 Editable Thesis Checklist PDF
2017 Editable Thesis Checklist PDFAtiqa khan
 
2017 Basics of GIS
2017 Basics of GIS2017 Basics of GIS
2017 Basics of GISAtiqa khan
 
2016 Tenses in Research Paper
2016 Tenses in Research Paper2016 Tenses in Research Paper
2016 Tenses in Research PaperAtiqa khan
 
Catalog of Earth Satellite Orbits_2017
Catalog of Earth Satellite Orbits_2017Catalog of Earth Satellite Orbits_2017
Catalog of Earth Satellite Orbits_2017Atiqa khan
 
Physiology MBBS Part 2 UHS Paper-2016
Physiology MBBS Part 2 UHS Paper-2016Physiology MBBS Part 2 UHS Paper-2016
Physiology MBBS Part 2 UHS Paper-2016Atiqa khan
 
Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016
Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016
Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016Atiqa khan
 
Bio Chemistry MBBS Part 2 UHS Paper-2016
Bio Chemistry MBBS Part 2 UHS Paper-2016Bio Chemistry MBBS Part 2 UHS Paper-2016
Bio Chemistry MBBS Part 2 UHS Paper-2016Atiqa khan
 
Editable CD Cover Template_2016
Editable CD Cover Template_2016Editable CD Cover Template_2016
Editable CD Cover Template_2016Atiqa khan
 

Plus de Atiqa khan (20)

2019_Wingdings Font - Times New Roman
2019_Wingdings Font  - Times New Roman2019_Wingdings Font  - Times New Roman
2019_Wingdings Font - Times New Roman
 
English Urdu Font in Windows 10 Keyboard
English Urdu Font in Windows 10 KeyboardEnglish Urdu Font in Windows 10 Keyboard
English Urdu Font in Windows 10 Keyboard
 
2018 Solutions to Sleep Screen
2018 Solutions to Sleep Screen2018 Solutions to Sleep Screen
2018 Solutions to Sleep Screen
 
2017 Thesis Check List Doc
2017 Thesis Check List Doc2017 Thesis Check List Doc
2017 Thesis Check List Doc
 
2017 Terms in GIS Town Planning
2017 Terms in GIS Town Planning2017 Terms in GIS Town Planning
2017 Terms in GIS Town Planning
 
2017 Pictorial Differences GIS & RS
2017 Pictorial Differences GIS & RS2017 Pictorial Differences GIS & RS
2017 Pictorial Differences GIS & RS
 
2017 Response Letter to a Journal
2017 Response Letter to a Journal2017 Response Letter to a Journal
2017 Response Letter to a Journal
 
2017 How to write Author Biography for Journal
2017 How to write Author Biography for Journal2017 How to write Author Biography for Journal
2017 How to write Author Biography for Journal
 
2017 Information about NUST Engineering
2017 Information about NUST Engineering2017 Information about NUST Engineering
2017 Information about NUST Engineering
 
2017 Glossary Of Cartographic Terms
2017 Glossary Of Cartographic Terms2017 Glossary Of Cartographic Terms
2017 Glossary Of Cartographic Terms
 
2017 Types Of Orbits Brief Explanation
2017 Types Of Orbits Brief Explanation2017 Types Of Orbits Brief Explanation
2017 Types Of Orbits Brief Explanation
 
2017 IST Undergraduates Admission Guide for Fall
2017 IST Undergraduates Admission Guide for Fall2017 IST Undergraduates Admission Guide for Fall
2017 IST Undergraduates Admission Guide for Fall
 
2017 Editable Thesis Checklist PDF
2017 Editable Thesis Checklist PDF2017 Editable Thesis Checklist PDF
2017 Editable Thesis Checklist PDF
 
2017 Basics of GIS
2017 Basics of GIS2017 Basics of GIS
2017 Basics of GIS
 
2016 Tenses in Research Paper
2016 Tenses in Research Paper2016 Tenses in Research Paper
2016 Tenses in Research Paper
 
Catalog of Earth Satellite Orbits_2017
Catalog of Earth Satellite Orbits_2017Catalog of Earth Satellite Orbits_2017
Catalog of Earth Satellite Orbits_2017
 
Physiology MBBS Part 2 UHS Paper-2016
Physiology MBBS Part 2 UHS Paper-2016Physiology MBBS Part 2 UHS Paper-2016
Physiology MBBS Part 2 UHS Paper-2016
 
Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016
Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016
Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016
 
Bio Chemistry MBBS Part 2 UHS Paper-2016
Bio Chemistry MBBS Part 2 UHS Paper-2016Bio Chemistry MBBS Part 2 UHS Paper-2016
Bio Chemistry MBBS Part 2 UHS Paper-2016
 
Editable CD Cover Template_2016
Editable CD Cover Template_2016Editable CD Cover Template_2016
Editable CD Cover Template_2016
 

Dernier

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Dernier (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

Lec_8_Intro to Join and Relate

  • 1. Intro to Join and Relate Prof. Dr. Sajid Rashid Ahmad sajidpu@yahoo.com Atiqa Ijaz Khan _ Demonstrator atiqa_ss09@yahoo.com
  • 2. JOIN (ArcGIS 10.1) Tuesday, March 3, 2015Institute of Geology, University of the Punjab 2
  • 3. Need for Join…! • Most database design guidelines promote organizing your database into multiple tables — each focused on a specific topic — instead of one large table containing all the necessary fields. • Having multiple tables prevents duplicating information in the database, because you store the information only once in one table. • When you need information that isn't in the current table, you can link the two tables together. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 3
  • 4. With the help of ArcGIS • ArcGIS allows to join or relate the records from a layer to a table etc. • This can be done using a “Key” said to be the “Primary Key”. • Joining can only be done, if one is having atleast one “Common Field” in both of them. • This is only temporarily. • And it is stored only when one saves the Arc Map document. (.mxd) • If one doesn’t store the Arc Map document, it will show NO join, next time opened with the same file. • Otherwise, “Export” the file with the records for being permanent. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 4
  • 5. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 5 Joining on the basis of Common Field
  • 6. Join in Arc GIS • The input and target table should be either in the same directory or saved with relative paths in order to establish the relationship on next opening of Arc Map. • Otherwise, Repair the paths to re-new the relationship. • The common field MUST have the “Same Data Type”. • It is not necessary to have the same field name. • It could have following relationships: • One to one • Many to one Tuesday, March 3, 2015Institute of Geology, University of the Punjab 6
  • 7. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 7 Above: One-to-one Relationship Lower: Many-to-one Relationship
  • 8. Types of Join • It could be join on the basis of: • Non-spatial information (Attribute data) • On the basis of common field or attribute data. • With another layer or with table (Excel or Text file) • Having common key or primary key. • Spatial information (Locational data) • All of the shapefiles can be joined with each other. • Point to Line to Polygon (vice versa and within each other) • All of the pairs are given different options. • It will create new output file for every join. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 8
  • 9. Options available within Spatial join of Data in Arc GIS Tuesday, March 3, 2015Institute of Geology, University of the Punjab 9
  • 10. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 10 LEFT: Attribute Data (From table) RIGHT: Locational Data (From another layer)
  • 11. Managing & Removing Joined Tables • Managing Tables • Right-click a layer or table in the table of contents and click Properties. Click the Joins & Relates tab. • All the joins for the layer or table are listed on the left side of the dialog box. You can add new joins, remove existing ones, and view properties about the joins. • Removing Tables • In the table of contents, right-click the layer containing a join you want to remove. • You can also click the Options button on an open table window. Point to Joins and Relates, point to Remove Join(s), and click the join you want to remove. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 11
  • 12. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 12 Joins & Relate
  • 13. Relate in Arc GIS • One table can only be joined with one layer at a time. • One can keep: • All Records, or (Default option) • Only matching Records • One can remove Join, anytime one wants. • Join does not alter the original table. • All the attribute operations are valid upon the fields that are joined together. • As the joined table simply can be opened as “Attribute Table” in Arc Map. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 13
  • 14. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 14 Above: Keeping all records Lower: Keep only matching records
  • 15. RELATE (ArcGIS 10.1) Tuesday, March 3, 2015Institute of Geology, University of the Punjab 15
  • 16. • It only represents the relationship between two classes. • Relate does not append the data to the layers permanently like join. • It offers two relationships: • One to many • Many to many • Relates are bi-directional. That means: • Layer and table can be accessed cross each other. • Table will be listed under the layer. • Layer can be accessed by the table also. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 16
  • 17. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 17 How to Relate and Access it
  • 18. Important Facts • “Same Table” cannot be Relate to “Same Layer”, already Joined with that table. • It will give error. • Reverse can possible. • “Same Table” can be Join to “Same Layer”, already Related with that table. • During the “Join or Relate”, the table cannot save the edits on it. Unless it is saved with another name. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 18
  • 19. Tuesday, March 3, 2015Institute of Geology, University of the Punjab 19