Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find where more than 1 record exists
Message
 
 
À
01/05/2003 15:51:10
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00783789
Message ID:
00783922
Vues:
11
>>
>>SELECT MyField1, MyField2, COUNT(MyField1) AS HowMany ;
>>  FROM MyTable GROUP BY MyField1, MyField2
>>  HAVING HowMany > 1 INTO CURSOR MyResult
>>
>
>Jim,
>
>What if I really want both records for John, but not the one for Jim? This wasn't what I thought I needed before, now it is.
>
>Renoir

It could be done with EXISTS keyword in one select, but I usually use two for simplicity..
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform