Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible Bug in SQL Select WHERE clause in VFP7
Message
De
08/10/2001 21:46:26
 
 
À
05/10/2001 18:56:46
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00563935
Message ID:
00565780
Vues:
22
Now that's really interesting!!..
I've decided to go with the WHERE NOT IN (SELECT....) construct, eventhough its not optimizable when comparing multiple fields (unless an index exists with the exact expression). However, I like your solution a LOT better than using the HAVING clause. The having clause gets tricky when you have GROUP BY's. Thanks a lot for your info Peter!!
Mark

>Mark,
>I got the same reults with your sample.
>But if I just add =.T. at the end it works fine in VFP7 as expected,
>no matter if its indexed or not.
>
>
>SELECT tbl1.*;
>FROM tbl1;
>LEFT JOIN tbl2;
>ON;
>tbl1.userid = tbl2.userid;
>WHERE;
>ISNULL(tbl2.userid) = .T.
>
>
>Peter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform