Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting the first one from a group
Message
De
29/02/2000 12:47:00
 
 
À
29/02/2000 09:19:37
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00338912
Message ID:
00339246
Vues:
20
>>>SELECT MIN(PrimaryKey),SecondaryKey FROM Table ;
>>>INTO CURSOR TEMP ;
>>>GROUP BY 2
>
>>I was looking to solve this one from the left side instead of the right side. :)
>
>please explain left and right sides from a single table.
>
>If not the simple Select above, then it might be a montrously convoluted mess if it's possible at all. (i use a few Select Messes, they're not pretty to look at- but they work really well anyway)

I meant I was looking for a special syntax of the GROUP BY which would have achieved all that while the solution was using the MIN on the fields with a GROUP on the secondary field. I never thought of applying something on the fields in the first case.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform