Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- Dabatases and Tables
Message
From
27/12/1999 13:59:17
 
 
To
27/12/1999 12:06:59
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00308802
Message ID:
00308861
Views:
20
Hello Erik,
The real table has 70 fields. Do I have to specify the 69 fields in the GROUP BY clause?

>>I have a table with 5 fields and I'd like to get rid of the dup records base of 4 fields. The SELECT DISTINCT command doesn't work in this case because it compares the whole record.
>>
>>Any sugestions? Thank you in advance.
>
>you can choose your criteria for your uniqueness check with the GROUP BY clause:
>
>SELECT COUNT(*), * FROM Mytable GROUP BY Field1, Field2, Field3, Field4 HAVING COUNT(*) > 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform