In a FGDB, I have:
- A point FC with a unique ID field.
- A related table that has the ID field as a foreign key, of sorts.
- The relationship is: 1:M (one point feature to many related table records).
I want to export a copy of the FC that brings in the information from the related records. So the challenge is: how to handle the 1:M relationship?
Options:
- Join from the FC to the table using an in-map join in the attribute table. In-map attribute table joins get the first arbitrary related record that it finds (“one-to-first”), and ignores the rest of the related records. So that's not quite what I want.
- Or, pivot the related records into columns, making the relationship 1:1.
- Or, create duplicate points for each related record.
For option #3, how can I propagate duplicate features for each related record?
If I were working in pure SQL, I'd simply use a LEFT JOIN from the FC to the table. But I don't think I can write full-blown SQL queries with JOIN clauses on FGDB data (i.e. Query Layers).
Thanks.