Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select from table 1 where NOT IN Table 2
Message
From
12/11/1999 12:05:14
 
 
To
11/11/1999 16:58:45
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00290304
Message ID:
00290627
Views:
13
>>Does Fox SQL Syntax allow for following?:
>>
>>SELECT table1.orderid FROM table1 WHERE table1.orderid NOT IN table2.orderid
>>
>>Thanks,
>
>SELECT table1.orderid FROM table1 WHERE table1.orderid NOT IN (select table2.orderid from table2)
>
>or, in VFP 6.0 this is I think an OUTTER JOIN would do this too.
>
>BOb
I don't think an OUTER JOIN works here. The object is to get records from table 1 that are not in table2 based on orderid. An OUTER JOIN, be it LEFT, RIGHT, or FULL would probably get you those record but would, unfortunately, also include records WHERE table1.orderid IN (SELECT table2.orderid FROM table2).
Previous
Reply
Map
View

Click here to load this message in the networking platform