Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL EXISTS clause
Message
From
16/10/2002 12:04:34
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL EXISTS clause
Miscellaneous
Thread ID:
00711792
Message ID:
00711792
Views:
39
Hi All,

I need help creating a VFP SQL select statement that conditionally selects records from two tables as follows:

1) Both tables have the same fields (names, types, size, etc. are identical)
2) Table 'A' contains all records, say 100.
3) Table 'B' contains a subset of Table A's records, say 20.
4) I would like to execute a query that selects the 80 records in Table A that do not exist in Table B.

When I checked the VFP6 help for Select SQL, there was an example that used an EXISTS clause. I could not find any further help regarding this option. How does it work? How can I apply it to my problem?

Thanks in advance to all who try to assist.

Mike.
Next
Reply
Map
View

Click here to load this message in the networking platform