Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command to avoid data appearing twice or more?
Message
De
02/02/1999 00:26:47
 
 
À
01/02/1999 12:59:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00182584
Message ID:
00182830
Vues:
8
>Hi,
>
>I use SET FILTER TO mclass=class and then open a browse window to browse the data for "class" only. But some of the data like Student Class, may appear twice or more depends on the numbers of record.
>
>So, is there any way to keep the same "class" to appear twice or more?
>I want each of them to be listed only once.
>
>Gan

I don't know how to do this wit BROWSE or SET FILTER, but it is easy with SQL:

SELECT MyField1, MyField2 FROM MyTable GROUP BY MyField1

will only show one record for each value of myfield1. To only shoq one record for each unique combination of MyField1 and MyField1, use

GROUP BY MyField1, MyField2
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform