Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to GROUP BY MAX() ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00109215
Message ID:
00109433
Vues:
45
If I am understanding properly, when the data is added to the table, it has some sort of date/time stamp, and you want the most recent record added ignoring all previous... If this is the case, this may be a simple solution...

Index on mailinglistid descending unique tag tmptag

Since the records will be in natural order, the date stamp I would assume is most recent with the most recent record. Therefore by indexing on the id descending it will use the last record first. Then by having UNIQUE, it will skip the rest of the same "mailinglistid".

Hope this is what you needed.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform