0

I have kind of the same question as "greyline" : How to implement 3NF (third normal form) in ArcGIS attribute tables?

I need, among other things, to place foreign key in my tables to combine them and I don't know how to do it with ArcGIS. I tried at first with "New -> Relationship Class" but I didn't have control on my attributes to select properly and avoid redundant data (I don't know the equivalent of "distinct" in ArcGIS commands). I am now trying to create a model that could combine the tables, but I don't know how to specify that each row for my "Date-t" tab, has to be linked to a single proper table in my database?

My model's structure: enter image description here

"Make Table View" details: enter image description here

"Add join" details:

enter image description here

I am ready to change all the method if mine is wrong. I just cannot use the PostGIS since I don't have it.

The aim of this operation is to be able to fetch data from my tables using Python, but I think it's an other question.

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked May 27, 2019 at 12:40

1 Answer 1

0

I changed the method finally; I found out that relational databases are not the most adequate and appropriate solution on ArcGIS (in my case at least).
I created a large table combining the data of all my previous tables (with arcpy.Merge_management()) and added the dates with the arcpy.AddField_management(). It's much easier and it's feasible in one python script.

The fetch data, a simple arcpy.da.SearchCursor() does the trick !

answered Jun 3, 2019 at 14:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.