Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I UNION 2 selects and keep 1 of a duplicate recor
Message
 
 
À
04/10/2001 23:35:46
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00564602
Message ID:
00564616
Vues:
17
I think I'm missing something. Do you want to have only one duplicate record from both cursors or you want to add only one duplicate record from the second cursor crreating possible duplicates in the result set?

>I tried UNION but it removed both duplicates.
>
>>>I have two selects all structurally identical. I want to merge the two selects, and any duplicate records, I want 1 kept not both removed.
>>
>>UNION ALL will keep all records, UNION - only one of the duplicate records. The key is the whole record.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform