Select to view content in your preferred language

How to join using Make Query Table?

762
1
Jump to solution
03-06-2024 01:14 PM
Labels (2)
Bud
by
Honored Contributor

ArcGIS Pro 3.2.2; File Geodatabase:


I want to learn how to use Make Query Table, possibly as an alternative join mechanism when Add Join isn't suitable, such as:

The docs say:

Make Query Table (Data Management)

The query can be used to join several tables or return a subset of fields or rows from the original data in the database.

I thought Make Query Table might do a 1:1 or 1:M join between two tables using a common join field. But when I tested it, the resulting QueryTable isn't what I expected:

Bud_1-1709759673845.png

Is it doing some sort of cartesian product/CROSS JOIN?

What am I missing? What's the intended use case? How can I do a 1:1 or 1:M join?

0 Kudos
1 Solution

Accepted Solutions
Bud
by
Honored Contributor

It looks like the join fields need to be specified in the WHERE clause SQL expression:

Esri Case #03574486 - How to join using Make Query Table?

…[use] SQL expressions. Please refer to the following link for examples of queries using the Make Query Table tool.
https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/examples-of-queries-with-t...

Bud_0-1710475203604.png

 

 

View solution in original post

0 Kudos
1 Reply
Bud
by
Honored Contributor

It looks like the join fields need to be specified in the WHERE clause SQL expression:

Esri Case #03574486 - How to join using Make Query Table?

…[use] SQL expressions. Please refer to the following link for examples of queries using the Make Query Table tool.
https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/examples-of-queries-with-t...

Bud_0-1710475203604.png

 

 

0 Kudos