0

Issue about the duplicates…

Hi,

 

Strange thing about the duplicates.

I use a script to display the duplicates.

I do not get the right numbers of originals : 16 instead of 41 !

What can explain such an error ?

Thanks.

10 replies

null
    • Addinsell
    • 3 yrs ago
    • Reported - view

    I think I get it.

    What I want is to display words displayed only one time in a list

    If I use a script a script to find the duplicates it will show the words that have been entered more than one time but it will not work for words entered only one time.

    So I should use an other function.

    But wich one ?

    Thanks

    • Fred
    • 3 yrs ago
    • Reported - view

    Please post the code you are using.

    • Addinsell
    • 3 yrs ago
    • Reported - view

    Hi Fred.

    I have 2 of them :

    1)

    let myV := Ordre;

    if cnt(select 'Ajouts familles-Tableau 1'where Ordre = myV) > 1 then

    "Duplicate"

    else

     

    null

    end

     

    2)

    let myV := Ordre;

    if cnt(select 'Ajouts familles-Tableau 1'where Ordre = myV) > 1 then

    "Duplicate"

    else

     

    "no duplicate"

    end

    • Fred
    • 3 yrs ago
    • Reported - view

    You say you want a script to put the text "duplicate" in records that have a count of 1 when Ordre = myV?

    What happens when if you change your greater than (>) to equals (=)?

    • Addinsell
    • 3 yrs ago
    • Reported - view

    I tried this script :

     

    let myV := Ordre;

    if cnt(select 'Oiseaux famille genres espéces' where Ordre = myV)=1then

    "Duplicate"

    else

     

    I get this error :

    "A table has not been found Oiseaux famille genres espéces on the line 2, column 52"

    • Addinsell
    • 3 yrs ago
    • Reported - view
    • Addinsell
    • 3 yrs ago
    • Reported - view

    Hi Fred,

     

    I have not found why this script has this error…very strange.

     

    So I tried the modification with another base

    Always curious,  but better…

    -With "> 1" in the script  I got 16 names alone.

    -With "= 1" in the script  this time I get 29 names alone.

    It's better but 381156B0-A2D0-43D0-9A9F-0A95E6369F04why 40 is not found ?

    • Fred
    • 3 yrs ago
    • Reported - view

    That is a weird error as the table name looks correct.

    I can't say why you found what you found as I don't have your data to look at.

    • Addinsell
    • 3 yrs ago
    • Reported - view

    Thanks Fred.

    Would it be possible to send you my database ?

    • Fred
    • 3 yrs ago
    • Reported - view

    If you have the online version you can add me as a user. Now how to pass along my email address without putting it on this site. If you on FaceBook, did you happen to join one of the Ninox groups?

Content aside

  • 3 yrs agoLast active
  • 10Replies
  • 566Views