Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select where not exists
Message
From
16/12/2004 21:57:31
 
 
To
16/12/2004 21:50:10
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00969838
Message ID:
00969923
Views:
12
Yes, I was trying both the 'NOT EXISTS' and the 'IN' method but I was seriously fooled because I was testing it on a view (buffered) because VFP 'SELECT's from the base and not the buffer I was not getting the results I had expected.

>Hi geoff,
>
>Amazingly noone mentioned the obvious.
>
>SELECT * FROM a WHERE NOT EXISTS(SELECT * FROM b WHERE a.Fk = a.pk)
>
>Walter,
>
>>Hi
>>
>>I know I've seen this somewhere but cant seem to find it now I need it.
>>
>>How do I select records from table A that do not exist in table B?
>>
>>regards
>>Geoff Scott
May all your weeds be wildflowers
Previous
Reply
Map
View

Click here to load this message in the networking platform