0

All data has duplicates

how do I remove the duplicates?

5 replies

null
    • torch
    • 6 yrs ago
    • Reported - view

    how do I remove the duplicates?

    • torch
    • 6 yrs ago
    • Reported - view

    how do I remove the duplicates?

    • Leonid_Semik
    • 6 yrs ago
    • Reported - view

    Add a Button in your table with formula:

    ---

    for ii in unique((select 'Your Table').'Your Field') do
    let myRec := first((select 'Your Table')['Your Field' = ii].Nr);
    delete (select 'Your Table')['Your Field' = ii and Nr != myRec]
    end

    ---

     

    Leo

    • Leonid_Semik
    • 6 yrs ago
    • Reported - view

    Oh, this is a formula for the german system. in your case:

    ---

    for ii in unique((select 'Your Table').'Your Field') do
    let myRec := first((select 'Your Table')['Your Field' = ii]._id);
    delete (select 'Your Table')['Your Field' = ii and _id != myRec]
    end

    ---

    Leo

    • blackie
    • 6 yrs ago
    • Reported - view

    Nice. Thanks. I was looking for a function that does what unique() does.

Content aside

  • 6 yrs agoLast active
  • 5Replies
  • 2607Views