rayh34 Posted December 13, 2006 Posted December 13, 2006 I have a DB that has duplicates in it. I need to be able to display the top ten records with most duplicates. Not sure if this enough info. Working on other issues right now, just trying to get a jump for when I dive into this one.
mr_vodka Posted December 13, 2006 Posted December 13, 2006 Create a calc field (cDupKey) to concat all the fields that you want to check what at a duplicate is. Create a Self Join relationship based off this new calc field. 'SelfJoin::cDupKey' Have a new calc field (cDupNum) with formula Count (SelfJoin::cDupKey). Then you can create a script that does the following: Show All Records Sort cDupNum by Descending Order Go to Record/Request [First] Omit Multiple Records [10] Show omitted Only
rayh34 Posted December 13, 2006 Author Posted December 13, 2006 Cool, sounds good. will try that. Thank you.
rayh34 Posted December 23, 2006 Author Posted December 23, 2006 Ok, started to actually work on this issue, not really sure how to set up the pervious suggestion. I have users that submit recipes, I need to be able to display the top 5 submiters. So I need to figure out how to check for dupes, sort according to hightest dupes. and omit all after. I need to display all 5 in a window.
LaRetta Posted December 23, 2006 Posted December 23, 2006 So I need to figure out how to check for dupes, sort according to hightest dupes. and omit all after. I need to display all 5 in a window. What, of John's suggestions, did you try? And what didn't work for you? The only thing not explained was the new window and that would be adding the following to the beginning of John's script of: New Window [ bla bla ]
rayh34 Posted December 23, 2006 Author Posted December 23, 2006 Create a calc field (cDupKey) to concat all the fields that you want to check what at a duplicate is. Basically, I am having problems understanding the very first part. If I can get a handle on what "concat" means and get this done, then I believe I understand the rest. I have only one field that I need to check for dup.
LaRetta Posted December 23, 2006 Posted December 23, 2006 Easier then ... just join that field to itself. A concatenated field means combining all the fields which make up the duplicate into a text calculation thus: Field1 & " " & Field2 etc. But since you only have one field, just use IT instead (in your join). :wink2:
Lee Smith Posted December 23, 2006 Posted December 23, 2006 From the Online Help. Keywords [color:blue]Text operators & = Concatenate Appends the text string on the right to the end of the text string on the left. Text strings can be fields, constants enclosed in quotes, or certain functions. HTH Lee
rayh34 Posted January 25, 2007 Author Posted January 25, 2007 Making Progress, Here is what I have done; Created following Fields: Created a Self Join relationship "URL Staging Area::Domain Name" cDupDomain = Calc, Unstored, From URL Staging Area, = Sum (Domain Dupes::One) One = Calc, from URL Staging Area, = 1 SumOne = Summary = Total of One I will just attach jpg's of both the scripts and result. Just want one of each record to display, and would like to have in a portal. If this sounds incohent.. due to major lack of sleep..
Recommended Posts
This topic is 6512 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now