Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find where more than 1 record exists
Message
 
 
To
01/05/2003 15:51:10
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00783789
Message ID:
00783922
Views:
13
>>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform