Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command to avoid data appearing twice or more?
Message
From
02/02/1999 00:26:47
 
 
To
01/02/1999 12:59:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00182584
Message ID:
00182830
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform