Quantcast
Channel: Value Lists Latest Topics
Viewing all articles
Browse latest Browse all 149

Find Unique and list

$
0
0

Hello, 

I have looked over the forums and I can't find a solution that best fits what I am trying to do. I have a large DB filled with about 200k policy numbers  Some are duplicates and some are unique. What I would like to do is using a self joining table list all the unique numbers (taking the first record from duplicates) and have them automatically be entered into a second related table called policy join. Here is what I have so far, I created  a self joining relationship between the policy table. I have created a find duplicate script which looks for duplicates and in the policy table this script insert a new record into the policy join table. I am wondering if there is an easier way other then having to run a script every time I enter new policy numbers? I import anywhere from 1000-5000 new policies each month and having to run the script to make reports takes forever. I found a solution that identifies unique number but it left out all the duplicates. This is the calculation that I found If(Count(policyfinderDUPLICATES::Policy Number) > 1; "Duplicates"; "Unique")


Viewing all articles
Browse latest Browse all 149

Trending Articles