In order to retrieve the data from the database for a location, we need to know the location’s segment number. This will then give us the name of the table for the data segment eg tDataSeg4 or tDataSeg23. From where can i get the segment number for a particular location? Does this reside as a column in any table so that I can lookup?
I have 50 tdataseg tables in my FDM db. How can i lookup for data for a particular location? How do I know which tdataseg table contains the data for the required location?
Alternatively, I can query all the 50 tDataSeg tables and look up for the data for a particular location using partition key tagged to a location. But that's time consuming.
You need to look in the tPOVPartition table (which is the FDM table that stores all the location related information). There is a field in this table which tells you the numer of the tDataSeg table used by each location