Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL - Removing duplicates
Message
De
05/09/2001 10:24:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/09/2001 08:45:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00552436
Message ID:
00552499
Vues:
12
>I have table with 5 or so fields and I am trying to eliminate records where there are duplicates based on the field UPIN. The whole record isn't duplicated but the UPIN value is. So the name,UPIN,credential would/could be duplicated but the zip,state, and specialty might be different. I need only unique (DISTINCT) records based on the UPIN field but I need the whole record.
>Hope this isn't clear as mud.
>Thanks,
>Eric

Eric,
If only UPIN is the field to determine duplication how would you decide which one has correct data for you ? A simple SQL with grouping would return distinct UPIN values but it has little chance that other fields are what you want (last record entered per UPIN).
Maybe a classical xbase approach would work for you best (order by UPIN, scan while UPIN is same and decide what should other field content be).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform