I am trying to create a SQL query between policyperiod and effectDatedFields to get the effectedDatedFields record for a specific policyperiod. I am not sure how to do this. I cannot find any foreign key in either table pointing to the other. Any help would be greatly appreciated.
I have looked at every column in both tables for something to join on. I have looked at the data dictionary for both entities for the same. I have even went on guidewire education and look at some of the data model sections to try and figure out how to model a one-to-one relationship in the database.
The
pc_effectivedatedfieldstable contains a field called BranchID. This field can be used to join this table withpc_policyperiodtable using ID column. However, it's important to note that the PolicyPeriod entity is of typeeffdatedbranch, while thepc_effectivedatedfieldstable belongs to theeffdatedtype. Consequently, if there have been policy changes to the policy during its term and any of the fields in thepc_effectivedatedfieldstable have been modified, you will encounter multiple entries in thepc_effectivedatedfieldstable for a singlepc_policyperiodentry.If you'd like to gain a better understanding of how slicing works in PolicyCenter, I would suggest taking some time to experiment in PolicyCenter and observe the results directly within the database. It can be a valuable hands-on experience to enhance your comprehension of this concept.