Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identifying dupes - interesting problem
Message
De
22/02/2000 23:57:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00335211
Message ID:
00335795
Vues:
23
> So, I may try something like:
> SELECT *, recno() FROM mytable INNER JOIN mytable AS my ON mytable.pk=my.pk and mytable.address = my.address and between(mytable.date, my.date-7, my.date+7)

Is pk the primary key? If yes, you only join each record with itself. So, I assume pk is not the primary key.
In this case, it should work if you add a condition to not join the record with itself.

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform