Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible Bug in SQL Select WHERE clause in VFP7
Message
From
08/10/2001 21:46:26
 
 
To
05/10/2001 18:56:46
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00563935
Message ID:
00565780
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform