Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combine and remove duplicate
Message
De
05/07/1999 12:36:11
 
 
À
05/07/1999 11:04:49
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00237126
Message ID:
00237512
Vues:
11
Maybe what he wants is more like:

SELECT Card_ID, Status, Date from table1 union select card_id, status, date from table2 into cursor temp

* that will get the unique records from both tables, but will only consider the three fields, instead of the entire record.



>>Hi,
>> I have tried to use your idea, but it doesn't return result in distinct format. Any suggestion?
>>
>>Thank you
>
>Well, then revert to your original solution or just select * distinct from the first cursor, i.e.
>
>select * from first_table ;
> union select * from second_table;
> into curs temp
>
>select * distinct from temp into curs distinct_cursor
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform