Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL not yiielding same result as Filter
Message
From
03/05/2000 09:35:45
 
 
To
02/05/2000 09:43:52
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00364987
Message ID:
00365542
Views:
14
Greetings David

>If I understand you correctly, you want to find any records in BALANCE that do not have matching TYPEs in PTYPES.
SELECT * FROM balance ;
>WHERE type NOT IN (SELECT type FROM ptypes)
Yes, that'll work but its not suitable for the particular operation I'm trying to deal with. The problem with that is I'm trying to create a generic form of the query and I want to be able to use the same format whether the user is asking for matching or non matching records. Francisco put me straight with the "left join". Now it works regardless.

Thanks

Harry
Previous
Reply
Map
View

Click here to load this message in the networking platform