Delete ALL Duplicates

Hello everybody, I'm in a trouble so I've decided to post here.
I have an internal table with several duplicates, and I need to delete ALL of them.
I'm using this sentences:
SORT <table> BY <fields>.
DELETE ADJACENT DUPLICATES FROM <table> COMPARING <fields>.
After that, my table still has a record; and I want to delete ALL records with duplicates.
Can somebody help me??
Thanks a lot!

DATA: contador TYPE i.
  SORT t_datos BY connid.
Se declara otra tabla igual y se copian los datos
  t_datos2[] = t_datos[].
Se recorre lap primera
  LOOP AT t_datos.
    CLEAR contador.
Se recorre la segunda tabla con el campo que queremos vigilar
    LOOP AT t_datos2 WHERE connid = t_datos-connid.
Se incrementa el contador
      ADD 1 TO contador.
Si hay más de un registro repetido para el mismo campo
(En este caso CONNID)
      IF contador GT 1.
Se borran todas las entradas
        DELETE t_datos2 WHERE connid = t_datos-connid.
      ENDIF. " contador GT 1
    ENDLOOP. " t_datos2
  ENDLOOP. " t_datos1
Restauramos t_datos.
  t_datos[] = t_datos2[].

Similar Messages

  • Each song on my iTunes has a duplicate. How do I delete all duplicates and prevent this from happening again in the future?

    Each song on my iTunes has a duplicate. How do I delete all duplicates and prevent this from happening again in the future?

    After I had updated to Itunes 11 (also on Windows 7), I had the same experience, but I suspect that it was because I accepted a proposal to set up an external media library in order to simplify security backups. An associated result was that I had lost all of my playlists!
    What I did was to restore the entire library off my Ipod, using a very good program called PodToPC (a free download is available) selecting an option to replace all of the stuff in the Itunes library. I use the Ipod Classic simply because it has a large capacity to hold my collection of CD and Vinyls. No way was I going to modify duplicates of 10000 tracks in 750 playslists by hand!  I did have a few residual problems with some of the playlist specs but, after a few hours of work all was restored.
    I hope this is useful.

  • I have many duplicate songs in my iTunes.  Is there a way to quickly delete all duplicates without having to manually delete all of them?

    I have many duplicate songs in my iTunes.  Is there a way to quickly delete all duplicates without having to manually delete all of them?

    How to find and remove duplicate items in your iTunes library - http://support.apple.com/kb/HT2905
    http://dougscripts.com/itunes/itinfo/dupin.php (commercial)
    post by turingtest2 - https://discussions.apple.com/thread/3555601 - different types of duplicates and techniques
    http://www.araxis.com/find-duplicate-files (commercial, free trial) - finds duplicate files on computer, not specifically iTunes
    I would do it manually.  As you can see from turingtest2's post, some duplicates are not really duplicates.
    I would also review how you add media to iTunes.  It should not be producing all that many duplicates.

  • Delete all duplicates in iTunes at once

    In iTunes 12.1.0.50 on a Mavericks iMac, how can I delete all duplicate songs at once?

    Realize the link to which ChitlinsCC posted is in the iTunes for Windows forum. It mentions a script which will only work in Windows iTunes.  I have not used it but the Dougscripts web site includes a tool for removing duplicates which works on Macs.
    Do heed turingtest2's warnings about blindly removing duplicates. There are several kinds of duplicates and deleting some may result in both disappearing completely from your computer.  I find in the normal course of things I generate only one or two duplicates per year. If you are finding many more then we need to review what is going on with your computer to generate all the extras.

  • Is there a way to Quickly organize, consolidate & save the Original (Pictures, Movies, etc.) yet delete all duplicate (Pictures, Movies, etc.)?

    Is there a way to Quickly organize, consolidate & save the Original (Pictures, Movies, etc.) yet delete all duplicate (Pictures, Movies, etc.)?

    I wanted to first thank you for this, as this is the only workaround literature that seems to be floating around out there.  With that said, I know it is a big ask, but is there any way that you could create a video showing step by step how to do what you do?  I have several tracks that are stuck in waiting mode, and if left in itunes, will never upload or match...they only cause the upload process to hang up and restart.  I've tried leaving it for days...I've tried converting the files, signing in and out of itunes (and itunes match), updating itunes match, and I tried your technique...unfortunately to no avail.  Perhaps I didn't do your technique correctly.  I used audacity to reverse the audio.
    ANY help would be GREATLY APPRECIATED!!!
    Thanks

  • My entire iTunes library has been duplicated.  How can I delete all duplicates at once rather than each one individually?

    My entire iTunes library has been duplicated.  Is there any command that will let me delete all duplicates at once, rather than each individual song?

    In particular:
    Once you have used the Show Exact Duplicates feature* you can set about deleting all but one copy of each duplicate file. If all the duplicates have recently been added into your library then you could sort the list on the date added column, select a range of tracks with SHIFT-click and delete all the recent entries.
    * On a Mac hold down Option, then click File > Show Exact Duplicates.
    You could also check out Doug's Scripts for useful tools.
    tt2

  • How to delete all duplicate songs at once

    how to delete all duplicate songs at once

    If you mean the songs on your iTunes, you can follow this guide to delete the duplicate songs on your iTunes library. Hope it helps. Contact me if you have any other question.

  • How do I Delete all Duplicate Photos?

    I have several copies of the same photos in iPhoto and under Pictures in the HD. I am not sure how they got duplicated in the first place, but there has got to be a simple way to delete all duplicates, right? I have like 10,000 images and many of them are duplicates, and many of them are images from my text books that I do not want.
    I have iWork and MobileMe if that helps at all...

    I don't know. They all claim to find duplicate files. The poster will need to read the Read Me files to confirm if the duplicates inside the iPhoto library folder are included.

  • Is there a easy way just to delete all duplicate photos photoshop 8?

    just want to delete all duplicates after backing up over the years and putting on newer pcs i seem to have nearly got 2 of each some nearly 4 of each ,would just like to know if there is a less time consuming way to delete them .thanks

    I suggest that you look at
    http://www.johnrellis.com/psedbtool/photoshopelements-6-7-faq.htm#_Find_and_delete

  • How do i delete all duplicates in my iphoto ?

    I have so many duplicates of photos on my iphoto on my macbook pro and on my iphone and I want to find an easy way to delete all duplicates in one easy step instead of going through 4,000 pictures.

    There is no way to compare for duplicates across threetwodevices running two different OSes and applications.
    Some apps for dealing with duplicates in iPhoto on your Mac:
    iPhoto Library Manager
    Duplicate Annihilator
    Decliner
    iPhoto Duplicate Cleaner

  • Automatic Delete all duplicate photos in IPhoto ?

    How can I delete all duplicate photos in my I Photo ? I have 6000 photos with many duplicates.

    Where are you seeing these duplicates? In iPhoto or via the Finder? If it's in iPhoto then try using Duplicate Annihilator. It can detect and identify duplicated image files that have been imported into iPhoto.
    If it's via the Finder then it's very likely you don't have true duplicates like you think you do.

  • How to delete all duplicate songs in Itunes in one step?

    How to delete all duplicate songs in Itunes in one step?

    Apple's official advice on duplicates is here: Find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls such as lost ratings and playlist membership, or that sometimes the same file can be represented by multiple entries in the library and that deleting one and recycling the file will break the other.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background, this post for detailed instructions, and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed.)
    The most recent version of the script can tidy dead links as long as there is at least one live duplicate to merge stats and playlist membership to and should cope sensibly when the same file has been added via multiple paths.
    tt2

  • Large number of duplicate listings of songs. 1 (or several) is found and then 1 or more with the circled "!" in col 1. I would like to automatically delete all duplicates and then all marked as not found.

    large number of duplicate listings of songs. 1 (or several) is found and then 1 or more not-found with the circled "!" in col 1. I would like to automatically delete all duplicates and then all marked as not found. How do I do this without losing my one good copy?

    large number of duplicate listings of songs. 1 (or several) is found and then 1 or more not-found with the circled "!" in col 1. I would like to automatically delete all duplicates and then all marked as not found. How do I do this without losing my one good copy?

  • How do i get rid of duplicates in my photo library?  I imported the photos again by mistake and dont want to do it manually.  is there a way to have iphoto compare and delete all duplicates?

    How do i delete duplicate photos in my iphoto library.  i imported them (1500 pics) twice and don't want to manually go through them all.  Is there a way to get iphoto to compare photos and delete the duplicates?

    There are two apps, actually one app and one Applescript script, for finding and removing duplicate photos from iPhoto. They are:
    Duplicate Annihilator
    iPhoto AppleScript to Remove Duplicates
    OT

  • HT4927 How to delete all duplicate photos ?

    What is the best way to delete multiple duplicate photos ?

    You can use one of the apps:
    iPhoto Library Manager 
    Duplicate Cleaner for iPhoto - free
    Duplicate Annihilator
    iPhoto Applescript to Remove Duplicates - free
    My personal favorite is the same as Larry's, iPhoto Library Manager.
    OT

Maybe you are looking for