Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for Duplicates
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00854192
Message ID:
00854197
Views:
15
Hi,
Sorry, I am not very clear for your question, but if you wan to check for duplication, here is the SQL
SELECT F1, F2, F3 ;
FROM myTable ;
GROUP BY f1 ;
HAVING COUNT(*)>1 ;
INTO CURSOR mytemp
If your "unique" expression is more than one field, just ..
SELECT F1, F2, F3, f1+f2+f3 as f4 ;
FROM myTable ;
GROUP BY f4 ;
HAVING COUNT(*)>1 ;
INTO CURSOR mytemp
Hope it is what you want.
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform